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