Download OpenAPI specification:
API documentation for managing group roles, including custom feature settings and video configurations.
Get the list of roles for the group.
Required Permissions:
Additional Authorization:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
{- "roles": [
- {
- "name": "Agent",
- "roleId": 1,
- "description": "Standard agent role",
- "inUse": true,
- "userCount": 15
}, - {
- "name": "Supervisor",
- "roleId": 2,
- "description": "Supervisor role with additional permissions",
- "inUse": true,
- "userCount": 3
}
]
}Create one or more roles for the group. Each role can have custom settings that override group-level settings.
Required Permissions:
Validation Rules:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
| name required | string <= 70 characters The name of the role (required, cannot be empty or whitespace only). |
| description | string <= 255 characters A description of the role (optional). |
object Feature permissions and capabilities assigned to a role. Each boolean controls whether users with this role can access the corresponding feature. Role-specific settings (optional). All settings are nullable booleans. |
[- {
- "name": "Support Agent",
- "description": "Standard support agent role",
- "settings": {
- "editAddress": true,
- "joinCobrowseSessions": true,
- "startScreenShareSessions": true
}
}
][- {
- "name": "string",
- "roleId": 0,
- "description": "string",
- "inUse": true,
- "userCount": 0
}
]Update one or more roles in the group. You can update the name, description, and/or settings for each role.
Required Permissions:
Validation Rules:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
| roleId required | integer The ID of the role to update (required). |
| name | string <= 70 characters The new name for the role (optional). |
| description | string <= 255 characters The new description for the role (optional). |
object Feature permissions and capabilities assigned to a role. Each boolean controls whether users with this role can access the corresponding feature. Updated role settings (optional). All settings are nullable booleans. Null values mean "don't change". |
[- {
- "roleId": 1,
- "name": "Updated Agent Role",
- "description": "Updated description"
}
]{- "status": "ok"
}Get detailed information about a specific role, including all role settings.
Required Permissions:
Additional Authorization:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
| role_id required | integer The ID of the role |
{- "name": "Agent",
- "roleId": 1,
- "description": "Standard agent role",
- "inUse": true,
- "settings": {
- "editAddress": true,
- "joinCobrowseSessions": true,
- "startScreenShareSessions": true,
- "joinCustomerScreenShareSessions": true,
- "viewVideo": false,
- "oneWayAgentVideo": false,
- "multiParticipantVideo": false
}
}Update a specific role in the group. You can update the name, description, and/or settings for the role.
Required Permissions:
Validation Rules:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
| role_id required | integer The ID of the role to update |
| name | string The new name for the role (optional, max 70 characters if provided) |
| description | string The new description for the role (optional, max 255 characters if provided) |
object Feature permissions and capabilities assigned to a role. Each boolean controls whether users with this role can access the corresponding feature. Updated role settings (optional). All settings are nullable booleans. Null values mean "don't change". |
{- "name": "Updated Agent Role"
}{- "message": "Role updated."
}Delete one or more roles from the group.
Important: A role cannot be deleted if it has users assigned to it. Users must be disassociated from the role before deletion.
Required Permissions:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
An array of role IDs to delete from the group.
The unique ID of a role to delete.
[- 1
]{- "status": "ok"
}Update video settings for one or more roles in the group. Video settings control background effects for agent video.
Required Permissions:
Validation Rules:
| group_id required | integer The group ID (Must be a positive unsigned integer) |
| roleId required | integer The ID of the role to update video settings for (required) |
| backgroundSelectedEffect | string or null The background effect type. Must be "imagefill" or "colorfill" if provided. If "imagefill", backgroundImageSettings must be provided. If "colorfill", fillColor must be provided. |
| fillColor | string or null The fill color for the video background. Required if backgroundSelectedEffect is "colorfill". |
| backgroundImageSettings | string or null The background image settings. Required if backgroundSelectedEffect is "imagefill". |
[- {
- "roleId": 1,
- "backgroundSelectedEffect": "imagefill",
}
]{- "message": "Role video settings updated successfully"
}