Bulk assign leads to teammate

POST https://api.tamio.com/v2/leads/bulk/assign-to-teammate

Assigns multiple leads to a team member in a single operation. Pass null for teammate_id to unassign leads from their current teammate. Maximum 50 leads per operation.

Body Parameters

leads array of string*

Array of lead UUIDs to assign

teammate_id string*

UUID of team member to assign leads to, or null to unassign

Responses

200 Leads assigned successfully

Leads assigned successfully

status integer
400 Bad request. Possible `error_code` values:
401 Missing or invalid API key
/leads/bulk/assign-to-teammate
1const response = await fetch("https://api.tamio.com/v2/leads/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
}