Usage of /answers/{id}/accept POST


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]