هل يتم تعيين الحل المقبول بواسطة 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)

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 إعجابات

لقد واجهت نفس المشكلة، وبعد بعض البحث وجدت:

أ) يجب عليك استخدام POST
ب) يجب المصادقة على POST باستخدام مستخدم مسموح له بتمييز إجابة كمقبولة
ج) لا يُسمح لمستخدم النظام بقبول الإجابات