Usage of /answers/{id}/accept POST

Discussion

Accepts an answer.

Use an access_token with write_access to accept. Accept votes can only be cast on answers to questions owned by the access_token's user, and only if no other answer is accepted.

To undo an accept use the /answers/{id}/accept/undo method.

This method returns the accepted answer.

Try It

Stack Overflow [edit] load-test.stackoverflow.dev https://load-test.stackoverflow.dev
https://load-test.stackoverflow.dev/oauth/dialog?client_id=1&key=U4DMV*8nvpm3EOpvf69Rxw((&redirect_uri=https%3a%2f%2fapi.load-test.stackexchange.dev%2fdocs%2foauth_landing U4DMV*8nvpm3EOpvf69Rxw((