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

Responses

200 Customers assigned successfully

Customers assigned successfully

status integer
customers array of string
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/customers/bulk/assign-to-teammate
1const response = await fetch("https://api.tamio.com/v2/customers/bulk/assign-to-teammate", {
2 method: "POST",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200,
  "customers": []
}