v1

latestOpenAPI 3.0.1MIT2026-07-26104203277.0 KB

Update a campaign's name

Updates the name of an existing campaign by ID.

patch/v1/voice-agents/campaigns/{id}

Path parameters

idstring uuid required
Example:a8f7656f-098b-4c43-b165-7cfd2cc8ac50

UUID of the campaign.

Request body

namestring required

The new campaign name (1-100 characters).

Example request

{
  "name": "Updated Campaign Name"
}

Response

Successful response

successboolean
messagestring
messageKeystring

Example response

{
  "success": true,
  "message": "Campaign updated successfully",
  "messageKey": "CAMPAIGN_UPDATED_SUCCESSFULLY",
  "data": {
    "id": "a8f7656f-098b-4c43-b165-7cfd2cc8ac50",
    "name": "Q1 Customer Outreach",
    "status": "SCHEDULED",
    "sendType": "NOW",
    "scheduledDate": "2025-12-01T09:00:00Z",
    "scheduledTimezone": "America/New_York",
    "timeRange": {
      "days": [
        "MONDAY",
        "TUESDAY",
        "WEDNESDAY"
      ],
      "startCallingTime": "09:00",
      "endCallingTime": "17:00"
    },
    "reservedConcurrency": 10,
    "webhookUrl": "https://example.com/webhook",
    "projectId": "48f7656f-098b-4c43-b165-7cfd2cc8ac30",
    "userId": "48f7656f-098b-4c43-b165-7cfd2cc8ac30",
    "voiceAgentId": "68f7656f-098b-4c43-b165-7cfd2cc8ac40",
    "phoneNumberId": "48f7656f-098b-4c43-b165-7cfd2cc8ac30",
    "createdAt": "2025-12-06T10:00:00.000Z",
    "updatedAt": "2025-12-06T10:00:00.000Z"
  }
}