---
title: "Update Campaign Template"
method: PUT
path: "/v1/templates/campaigns/{campaignTemplateId}"
tags: ["Templates"]
---

# Update Campaign Template

`PUT /v1/templates/campaigns/{campaignTemplateId}`

Updates the name or description of the campaign template.

> 📘 Campaign Templates – Documentation
>
>Read the [Campaign Templates documentation](/build/campaign-templates) to learn more about this feature.

## Request body

- TemplatesCampaignsUpdateRequestBody — Request body for updating a campaign template.
  - `name` string — User-defined name of the campaign template. It must be unique.
  - `description` string, nullable — User-defined description of the campaign template.

## Response `200`

Returns the details of an updated campaign template.

- TemplatesCampaignsUpdateResponseBody — Stores details about a campaign template.
  - `id` string, required — Unique identifier of the campaign template. It is assigned by Voucherify.
  - `name` string, required — User-defined name of the campaign template.
  - `description` string — User-defined description of the campaign template.
  - `campaign_type` 'DISCOUNT_COUPONS' | 'GIFT_VOUCHERS', required — Type of the campaign used to create the campaign template. Templates created from a promotion tier are converted to `DISCOUNT_COUPONS`.
  - `created_at` string, date-time, required — Timestamp representing the date and time when the campaign template was created. The value is shown in the ISO 8601 format.
  - `object` 'campaign_template', required — The type of the object represented by JSON.
  - `updated_at` string, date-time — Timestamp representing the date and time when the campaign template was last updated. The value is shown in the ISO 8601 format.

## Other responses

- `400` — Returns an error if the payload is invalid.
- `404` — Returns an error if a resource is not found.
- `409` — Returns an error if a campaign template with the same name already exists.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/revisions/4982266e0494/schema)
