Assign customers to a teammate
POST
https://api.tamio.com/v2/customers/bulk/assign-to-teammate
Assigns one or more customers to a teammate. Pass null for teammate_id
to unassign customers from their current teammate.
Body Parameters
customers
array of string*
Array of customer UUIDs to assign
teammate_id
string*
Teammate UUID to assign to, or null to unassign
Example
{
"customers": [
"550e8400-e29b-41d4-a716-446655440001",
"550e8400-e29b-41d4-a716-446655440002"
],
"teammate_id": "770e8400-e29b-41d4-a716-446655440000"
}
Responses
200
Customers assigned successfully
Customers assigned successfully
status
integer
customers
array of string
400
Validation or business-logic error.
Validation or business-logic error.
| Code | Description |
|---|---|
1002 | One or more customer UUIDs or teammate UUID not found |
status
integer
error
string
error_code
integer
401
Unauthorized – invalid or missing Bearer token
Unauthorized – invalid or missing Bearer token
status
integer
error
string