Skip to main content
POST
/
management
/
v1
/
projects
/
{projectId}
/
templates
/
campaigns
/
{campaignTemplateId}
/
copy
Copy Campaign Template to a Project
curl --request POST \
  --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/templates/campaigns/{campaignTemplateId}/copy \
  --header 'Content-Type: application/json' \
  --header 'X-Management-Id: <api-key>' \
  --header 'X-Management-Token: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "destination_project_id": "<string>"
}'
{
  "id": "camp_tpl_0f7e3ac98f04d00ab9",
  "name": "Item_Discount_Campaign_Template",
  "description": "To be reused in the future",
  "campaign_type": "DISCOUNT_COUPONS",
  "created_at": "2024-10-09T15:52:45.414Z",
  "object": "campaign_template"
}

Authorizations

X-Management-Id
string
header
required
X-Management-Token
string
header
required

Path Parameters

projectId
string
required
Example:
campaignTemplateId
string
required
Example:

Body

application/json
name
string
required
destination_project_id
string
required
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