غير قادر على إنشاء مستخدمين جدد

هل يمكن لأحد المساعدة في إنشاء مستخدم API. تمت مناقشة ذلك عدة مرات في فئة API، وأنا أتبع التوصيات، والطلب المقترح:

curl -X POST “https://DISCOURSEURL/users.json
-H “Api-Key: b5629e5139axxxxxxxxxxxxxxc93f623b0ab25fcd996bb424c6d5c71”
-H “Api-Username: admin1”
-H “Content-Type: multipart/form-data;”
-F “email=activeuser@example.com
-F “username=activeuser”
-F “password=simplepass”
-F “active=true”
-F “approved=true”

يعطي “errors”:[“You are not permitted to view the requested resource. The API username or key is invalid.”],“error_type”:“invalid_access”}
المستخدم هو مسؤول والمفتاح API صالح. إصدار Discourse هو 3.3.0.beta2-dev

إعجاب واحد (1)

لقد وجدت الحل عن طريق تعيين نطاقات مفتاح واجهة برمجة التطبيقات (API) إلى ما يلي

إعجابَين (2)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.