Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request PUT \ --url https://example.com/api/users/{userId}/role \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data '{}'
{ "error": { "code": "<string>", "message": "<string>", "requestId": "<string>", "statusCode": 123, "details": [ { "message": "<string>", "path": "<string>" } ] } }
1
admin
user
Role updated