Mark as accepted solution by API?

Hi there,

is it currently possible to mark a solution by api? When doing so with a Global API Key its a 404, with an api key using read/write scopes there is a permission error.

Using the endpoint solution/accept

1 Like

It should be. How to reverse engineer the Discourse API. If you’re getting a 404, then it’s likely a problem with your API key or how you’re passing it. If you share more information about how you’re trying to do it (actual code or the headers and URL) then someone might be able to help.

3 Likes

I bumped into the same problem, and after some digging found

a) You have to use a POST
b) The POST must be authenticated with a user that is allowed to mark an answer as accepted
c) The system user is not allowed to accept answers