Marcar como solução aceita via 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 curtida

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 curtidas

Encontrei o mesmo problema e, após alguma pesquisa, descobri:

a) Você tem que usar um POST
b) O POST deve ser autenticado com um usuário que tenha permissão para marcar uma resposta como aceita
c) O usuário do sistema não tem permissão para aceitar respostas