Sign in

Add comment to article

documented

Create a new comment on an article.

GET /articles/{ids}/comments/addArticlesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.stackexchange.com/2.3/posts/{{$article_id}}/comments/add?site={{site}}&key={{STACKEXCHANGE_API_KEY}}&access_token={{OAUTH2_ACCESS_TOKEN}}" \
  -X POST \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{"comment": {"body": "{{$comment_body}}", "locale": "{{$locale}}"}, "notify_subscribers": {{$notify_subscribers}}}'