GenPages
Apply a template's design to a campaign.
Changed onCopies 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
- Base URLhttps://backend.genpage.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"workspace_id": 55,
"campaign_id": 231,
"template_id": 88
}Response
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 #1subschema #2to the response bodyoneOflist for the response status - breaking
the response's body type changed from
objectto 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
- breaking
- info
endpoint added
- info