Update Campaign Template
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/templates/campaigns/{campaignTemplateId} \
--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"
}{
"code": 400,
"key": "invalid_payload",
"message": "Invalid payload",
"details": "Property .description must be string,null",
"request_id": "v-0f6d3eda91c99b27ed"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find campaign_template with id camp_tpl_zLtn2H9fgcG3NwO7t4PAfHc",
"request_id": "v-0f6d3efe61099b2824",
"resource_id": "camp_tpl_zLtn2H9fgcG3NwO7t4PAfHc",
"resource_type": "campaign_template"
}{
"code": 409,
"key": "duplicate_found",
"message": "Duplicated resource found",
"details": "Duplicated campaign_template exists with name Campaign_Template_01",
"request_id": "v-0f7610d229c04a0bd9",
"resource_id": "Campaign_Template_01",
"resource_type": "campaign_template"
}Update Campaign Template
Updates the name or description of the campaign template.
Campaign Templates – Documentation
Read the Campaign Templates documentation to learn more about this feature.
PUT
/
v1
/
templates
/
campaigns
/
{campaignTemplateId}
Update Campaign Template
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/templates/campaigns/{campaignTemplateId} \
--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"
}{
"code": 400,
"key": "invalid_payload",
"message": "Invalid payload",
"details": "Property .description must be string,null",
"request_id": "v-0f6d3eda91c99b27ed"
}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find campaign_template with id camp_tpl_zLtn2H9fgcG3NwO7t4PAfHc",
"request_id": "v-0f6d3efe61099b2824",
"resource_id": "camp_tpl_zLtn2H9fgcG3NwO7t4PAfHc",
"resource_type": "campaign_template"
}{
"code": 409,
"key": "duplicate_found",
"message": "Duplicated resource found",
"details": "Duplicated campaign_template exists with name Campaign_Template_01",
"request_id": "v-0f7610d229c04a0bd9",
"resource_id": "Campaign_Template_01",
"resource_type": "campaign_template"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Body
application/json
Provide the new name or description for the campaign template
Response
Returns the details of an updated campaign template.
Request body schema for PUT /templates/campaign/{campaignTemplateId}.

