GenPages

Apply a template's design to a campaign.

Changed on

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

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

    • breaking

      added subschema #1 subschema #2 to the response body oneOf list for the response status

    • breaking

      the response's body type changed from object to no type for status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      endpoint added