Save page-builder custom template
POST/openapi/2026-01/themes/page-builder/custom-templates
Save a custom card template based on an existing template; action decides how it is saved.
All three actions produce a new template id, and update takes the original template down.
Request
- application/json
- Body
- Example
Bodyrequired
save_as: A new copy, listedupdate: A new listed version; the template given bytemplate_idis taken downsave: Saved but not shown in the template list
Action. All three create a new template; they differ in whether it is listed:
Source template id for save_as / the template to version up for update
Template title (i18n map). Optional; defaults to the source template's title
First-level category. Optional; defaults to source
Second-level category. Optional; defaults to source
Preview image filename. Optional; defaults to source
Origin type: custom, global. Optional; defaults to source
{
"action": "string",
"template_id": "string",
"title": {},
"category": "string",
"second_category": "string",
"image": "string",
"origin": "string"
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
error code
error message
data object
Saved template id. Always a new id — update also creates a new template and hides
the one passed in template_id
Series id
Number of show templates
{
"code": "string",
"message": "string",
"data": {
"id": "string",
"series_id": "string",
"show_templates": 0
}
}