Skip to main content
PUT
https://api.trillet.ai
/
v1
/
api
/
call-dispositions
/
{id}
Update Call Disposition
curl --request PUT \
  --url https://api.trillet.ai/v1/api/call-dispositions/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "scheduledAt": "<string>",
  "status": "<string>",
  "notes": "<string>"
}
'
{
  "success": true,
  "disposition": {
    "_id": "665a1b2c3d4e5f6a7b8c9d0e",
    "phoneNumber": "+14155551234",
    "disposition": "callback_scheduled",
    "status": "pending",
    "scheduledAt": "2024-06-03T10:00:00.000Z",
    "attempt": 1
  }
}

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Path Parameters

id
string
required
The unique identifier of the call disposition to update.

Request Body

scheduledAt
string
New scheduled callback time in ISO format.
status
string
Updated status for the disposition.
notes
string
Updated notes for the disposition.

Response Fields

success
boolean
Whether the update was successful.
disposition
object
The updated disposition object.
{
  "success": true,
  "disposition": {
    "_id": "665a1b2c3d4e5f6a7b8c9d0e",
    "phoneNumber": "+14155551234",
    "disposition": "callback_scheduled",
    "status": "pending",
    "scheduledAt": "2024-06-03T10:00:00.000Z",
    "attempt": 1
  }
}