---
title: "Update a campaign's name"
method: PATCH
path: "/v1/voice-agents/campaigns/{id}"
---

# Update a campaign's name

`PATCH /v1/voice-agents/campaigns/{id}`

Updates the name of an existing campaign by ID.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateCampaignRequest
  - `name` string, required — The new campaign name (1-100 characters).

## Response `200`

Successful response

- UpdateCampaignResponse
  - `success` boolean
  - `message` string
  - `messageKey` string
  - `data` object
    - `id` string, uuid
    - `name` string
    - `status` 'SCHEDULED' | 'RUNNING' | 'PAUSED' | 'COMPLETED' | 'CANCELLED'
    - `sendType` 'NOW' | 'SCHEDULED'
    - `scheduledDate` string, date-time, nullable
    - `scheduledTimezone` string, nullable
    - `timeRange` object, nullable
      - `days` string[]
      - `startCallingTime` string
      - `endCallingTime` string
    - `reservedConcurrency` integer
    - `webhookUrl` string, nullable
    - `projectId` string, uuid
    - `userId` string, uuid
    - `voiceAgentId` string, uuid
    - `phoneNumberId` string, uuid
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Validation/Bad request error response
- `401` — Unauthorized
- `404` — Campaign not found
- `500` — Server Side Error

---

[API](https://skmtc.net/tryhamsa/apis/hamsa-api.md) · [All operations](https://skmtc.net/tryhamsa/apis/hamsa-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryhamsa/hamsa-api/versions/ecbeb5d8dc13/schema)
