Tamio

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.
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 "customers": [
9 "550e8400-e29b-41d4-a716-446655440001",
10 "550e8400-e29b-41d4-a716-446655440002"
11 ],
12 "teammate_id": "770e8400-e29b-41d4-a716-446655440000"
13 })
14});
15const data = await response.json();
Responses
{
  "status": 200,
  "customers": []
}