Skip to content
AI Security
Search
K
Main Navigation
App
Appearance
Menu
Return to top
Assign role to user.
​
POST
/backend/v1/users/{userId}/roles/{roleId}
Assigns a specified role to a user.
Authorizations
​
HTTPBearer
Type
HTTP (bearer)
Parameters
​
Path Parameters
userId
*
Type
string
Required
roleId
*
Required
Responses
​
200
422
Successful Response
Content-Type
application/json
Schema
JSON
JSON
{
 Â
"message"
:
"string"
}
POST
/backend/v1/users/{userId}/roles/{roleId}
Playground
​
Server
Select a server...
Authorization
HTTPBearer
Variables
Key
Value
userId
*
roleId
*
Try it out
Samples
​
Powered by
VitePress OpenAPI