Assign a role

POST {{baseUrl}}/contact_center/roles/:roleId/users

Use this API to assign users to a role. Roles have unique privileges that assigned users have access to. For example, an Administrator or Agent role.

Scopes: contact_center_role:write:admin

Rate Limit Label : Medium

Request Body

{"user_ids"=>["<string>", "<string>"]}

HEADERS

| Key | Datatype | Required | Description | | Content-Type | string | | | | Accept | string | | |

RESPONSES

status: Created

{"users":[{"user_id":"\u003cstring\u003e","display_name":"\u003cstring\u003e","user_email":"\u003cemail\u003e"},{"user_id":"\u003cstring\u003e","display_name":"\u003cstring\u003e","user_email":"\u003cemail\u003e"}]}