v1
latestOpenAPI 3.0.12026-08-041753011.2 MBUser
Give manager role to a user
post/v1/workspaces/{workspaceId}/users/{userId}/roles
Path parameters
workspaceIdstring required
Represents a workspace identifier across the system.
Example:64a687e29ae1f428e7ebe303
Represents a workspace identifier across the system.
userIdstring required
Represents a user identifier across the system.
Example:5a0ab5acb07987125438b60f
Represents a user identifier across the system.
Request body
Example request
{
"entityId": "60f924bafdaf031696ec6218",
"role": "TEAM_MANAGER",
"sourceType": "USER_GROUP"
}Response
Created
Example response
[
{
"role": {
"id": "60f91b3ffdaf031696ec61a8",
"name": "Administrator",
"source": {
"id": "5b715612b079875110791234",
"type": "USER_GROUP"
}
},
"userId": "5a0ab5acb07987125438b60f",
"workspaceId": "64a687e29ae1f428e7ebe303"
}
]