Assign Roles To User Or Group
Assign roles to a user or a group
Assigns roles to a user or a group.
Request
URI
POST
https://{api_host}/roles/assign
COPY
Request Body
RoleAssignment
of type(s)
application/json
Required
{
"authEntity": {
"domain": "string",
"name": "string",
"type": "string",
"id": "string"
},
"roles": [
{
"name": "string",
"id": "string"
}
]
}
object
authEntity
Optional
authEntity
array of
object
roles
Optional
roles
Responses
204
The request is successful.
Operation doesn't return any data structure
401
The user is not authorized.
Operation doesn't return any data structure
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/roles/assign