API referenceAdmin
Set Role
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
id*string
Length
1 <= lengthrole*string
Value in
- "user"
- "admin"
Response Body
application/json
curl -X POST "https://example.com/admin/users/setRole" \ -H "Content-Type: application/json" \ -d '{ "id": "string", "role": "user" }'null