Skip to main content
PATCH
/
batch-call
/
{id}
curl -X PATCH "https://api.zudu.ai/batch-call/batch_abc123" \
  -H "X-API-KEY: sk_Abc123Def456..." \
  -H "X-API-SECRET: s3cr3t_Xyz789..." \
  -d '{
    "name": "Updated Campaign Name",
    "status": "draft"
  }'
{
  "message": "Batch call updated successfully",
  "status": "success",
  "data": {
    "batch_call_id": "batch_abc123",
    "name": "Updated Campaign Name",
    "status": "DRAFT",
    "updated_at": "2024-01-15T11:00:00Z"
  }
Update batch call configuration. Only provided fields will be updated. Supports partial updates.
curl -X PATCH "https://api.zudu.ai/batch-call/batch_abc123" \
  -H "X-API-KEY: sk_Abc123Def456..." \
  -H "X-API-SECRET: s3cr3t_Xyz789..." \
  -d '{
    "name": "Updated Campaign Name",
    "status": "draft"
  }'
{
  "message": "Batch call updated successfully",
  "status": "success",
  "data": {
    "batch_call_id": "batch_abc123",
    "name": "Updated Campaign Name",
    "status": "DRAFT",
    "updated_at": "2024-01-15T11:00:00Z"
  }

Headers

X-API-KEY
string
required
Your API key (format: sk_...)
X-API-SECRET
string
required
Your API secret (format: s3cr3t_...)

Path Parameters

id
string
required
The batch call ID (format: batch_...)

Request Body (All Fields Optional)

name
string
Updated batch call name (max 255 characters)
status
string
Updated status: draft, scheduled, sentNote: Cannot change status to completed or failed via API.
trigger_timestamp
number
Updated scheduled execution timestamp (must be in future)
timezone
string
Updated timezone identifier

Error Responses

error
string
Bad Request - Invalid status transition or validation error
error
string
Not Found - Batch call does not exist

Notes

  • Only provided fields are updated (partial updates supported)
  • Status transitions are validated (e.g., cannot change COMPLETED back to DRAFT)
  • Batch calls in COMPLETED or FAILED status cannot be modified