Role
Change user role.
Authorizations
Path parameters
idall ofRequired
The unique ID of user.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
Body
rolestring · min: 1 · max: 64OptionalExample:
Roles include built-in roles and custom roles.
Built-in roles roles cannot be modified.
Also, the names of built-in roles are reserved words,
custom roles are not allowed to use these names to avoid unnecessary confusion.
Built-in roles include:
SystemAdmin
: the system administrator has almost all permissions.Replicator
: the application permissions collection.Dealer
: the sales manager has all sold tenant resource permissionsAdmin
: the admin has all tenant-wide resource permissions.StandardUser
: the user all user-wide resource permissions.StandardInternationalUser
: the user all user-wide resource permissions with international call permissions.QueueManager
: The call queue manager.
User
Responses
200
OK
4XX
Error
post
POST /api/users/{id}/role HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"role": "User"
}
No content