Trillet AI logo

Update Call Disposition

Move a contact's next smart callback to a new time.

PUThttps://api.trillet.ai/v1/api/call-dispositions/{id}

This endpoint only reschedules the next callback. It can't change a record's status, outcome or notes.

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

idstringrequired

The record's _id, from List Call Dispositions.

Request Body

The body is the new callback time on its own, not a JSON object. Send it as a JSON string with Content-Type: application/json, for example "2026-12-01T10:00:00", or as plain text with Content-Type: text/plain.

  • Format: yyyy-MM-ddTHH:mm:ss, with no offset. It is read as local time in the record's timezone.
  • A time less than a minute away, or in the past, is moved to one minute from now.
  • If the record has no callback queued (jobId is null), the new time is saved on the record but no call is placed.

Response

The updated record, with the fields described in Get Call Disposition. nextCallTime and currentTimeOfGivenTimezone show the new schedule.

Errors

StatusBodyWhen
400{"error": "Workspace ID is required"}The x-workspace-id header is missing
400{"error": "dateTime is required in body"}The body is empty
404{"error": "Call disposition not found"}No record with that ID exists in this workspace
curl -X PUT https://api.trillet.ai/v1/api/call-dispositions/c5c5c5c5c5c5c5c5c5c5c5c5 \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-workspace-id: YOUR_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '"2026-12-01T10:00:00"'
{
  "_id": "c5c5c5c5c5c5c5c5c5c5c5c5",
  "agentId": "a1a1a1a1a1a1a1a1a1a1a1a1",
  "batchId": "k3j9x0a1bq",
  "workspaceId": "aaaaaaaaaaaaaaaaaaaaaaaa",
  "phoneNumber": "+14155550123",
  "jobId": "41",
  "currentAttempt": 1,
  "maxAttempts": 3,
  "status": "active",
  "dispositionHistory": [
    {
      "outcome": "No Answer",
      "notes": "The call was not answered.",
      "callHistoryId": "d8d8d8d8d8d8d8d8d8d8d8d8",
      "createdAt": "2026-11-07T09:48:54.799Z",
      "updatedAt": "2026-11-07T09:48:54.799Z"
    }
  ],
  "timezone": "America/New_York",
  "nextCallTime": "1987200000,23d 0h 0m 0s",
  "currentTimeOfGivenTimezone": "2026-11-08T10:00:00",
  "logs": [],
  "createdAt": "2026-11-07T09:48:54.728Z",
  "updatedAt": "2026-11-08T15:00:00.000Z",
  "__v": 1
}

Last updated on