cURL
curl --request PATCH \ --url https://cloud.onyx.app/api/users/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "password": "<string>", "email": "[email protected]", "is_active": true, "is_superuser": true, "is_verified": true } '
200
Example
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "[email protected]", "is_active": true, "is_superuser": false, "is_verified": false, "role": "limited"}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Role updates are not allowed through the user update endpoint for security reasons Role changes should be handled through a separate, admin-only process
Successful Response
User roles
limited
basic
admin
curator
global_curator
slack_user
ext_perm_user
Was this page helpful?