GenPages

Apply a template's design to a campaign.

Copies the page design onto the campaign, replacing whatever design it had. Use it right after creating a campaign — until a campaign has a design, the pages generated for it are blank.

This overwrites: a campaign that already has a design loses it, and pages generated afterwards use the new one. Pages already generated keep what they were built with until they are regenerated.

post/api/external/v1/templates/apply

Request body

workspace_idinteger required

The workspace the campaign belongs to.

campaign_idinteger required

From campaigns/get-list or campaigns/create.

template_idinteger required

From templates/get-list.

Example request

{
  "workspace_id": 55,
  "campaign_id": 231,
  "template_id": 88
}

Response

OR

Example response

{
  "campaign_id": 231,
  "template_id": 88,
  "is_live": false,
  "message": "Template applied. Publish the design to make this campaign's pages live."
}

Changes