| Parameter | Type | Required | Description |
|---|---|---|---|
aiContactId | string (UUID) | Yes | Unique identifier of the contact to assign |
teamMemberId | string (UUID) | Yes | Unique identifier of the team member to assign |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
removeExistingAgents | boolean | No | false | If true, replaces all existing assigned agents with the new one |
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the assignment was successful |
message | string | Confirmation message |
removeExistingAgents=true query parameterremoveExistingAgents=false (default), a contact can have multiple assigned team members working togetherremoveExistingAgents=true, all previous agent assignments are removed and only the new agent is assigned| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid contact or agent ID |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Contact or team member not found |
| 500 | Internal Server Error - Something went wrong |
aiContactId and teamMemberId must be valid UUIDs from your organizationremoveExistingAgents=true to remove all previous agents and assign only the new oneAPI key required to authorize the request
ID of the AI contact
ID of the team member
If true, it will replace the existing agents with the new one
Team member assigned successfully.