Sign in

Accept answer

documented

Accept an answer for a question.

POST /answers/{id}/acceptAnswersno 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.2/answers/{{$id}}/accept?site={{$site}}&key={{STACKEXCHANGE_API_KEY}}&access_token={{OAUTH2_ACCESS_TOKEN}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"