Kann jemand bei der Erstellung von API-Benutzern helfen? Es wurde mehrmals in der API-Kategorie besprochen, ich befolge die Empfehlungen, die vorgeschlagene Anfrage:
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”
ergibt “errors”:[“You are not permitted to view the requested resource. The API username or key is invalid.”],“error_type”:“invalid_access”}
Der Benutzer ist Administrator und der API-Schlüssel ist gültig. Die Discourse-Version ist 3.3.0.beta2-dev
