Skip to main content
PUT
/
v1
/
templates
/
campaigns
/
{campaignTemplateId}
Update Campaign Template
curl --request PUT \
  --url https://{cluster}.voucherify.io/v1/templates/campaigns/{campaignTemplateId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>"
}'
{
  "id": "camp_tpl_zLtn2H9fgcG3NwO7t4PAfHcq",
  "name": "Happy Hours Winter Template",
  "description": "Template for a Happy Hours campaign with discount coupons for the winter season.",
  "campaign_type": "DISCOUNT_COUPONS",
  "created_at": "2019-09-09T09:09:09.009Z",
  "updated_at": "2019-09-09T19:09:09.009Z",
  "object": "campaign_template"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

campaignTemplateId
string
required
Example:

Body

application/json
name
string
description
string | null

Response

id
string
required
Example:
name
string
required
campaign_type
enum<string>
required
Available options:
DISCOUNT_COUPONS,
GIFT_VOUCHERS
created_at
string<date-time>
required
Example:
object
enum<string>
required
Available options:
campaign_template
description
string
updated_at
string<date-time>
Example: