Templates
Update Template
Update a template (name, width, height, backgrounds) and/or layers.
patch/v1/template/{template_id}
Request
- Base URL: https://layerre.com (the document declares no server; this is the origin it was published from)
- URL: https://layerre.com/v1/template/{template_id}
- Auth: HTTP bearer
Path parameters
template_idstring uuid required
Request body
Example request
{
"name": "My Template",
"width": 800,
"height": 600,
"background_color": "#FFFFFF",
"page_backgrounds": {
"1": "#1A1A2E",
"9": "#000000"
},
"layers": [
{
"name": "Title Layer",
"properties": {
"width": 100,
"height": 100,
"color": "#FF0000",
"text": "Hello World",
"font_size": 16,
"font_name": "Arial",
"text_direction": "rtl",
"line_spacing": 1000,
"vertical_align": "middle",
"img_url": "https://example.com/image.png",
"opacity": 1
}
}
],
"tags": [
"campaign",
"summer-2026"
]
}Response
Template updated successfully
Example response
{
"name": "My Template",
"width": 800,
"height": 600,
"source_url": "https://www.canva.com/design/...",
"background_color": "#FFFFFF",
"page_backgrounds": {
"0": "#000000",
"1": "#FFFFFF",
"9": "#000000"
},
"preview_url": "https://example.com/preview.png",
"layers": [
{
"name": "Title Layer",
"properties": {
"width": 100,
"height": 100,
"color": "#FF0000",
"text": "Hello World",
"font_size": 16,
"font_name": "Arial",
"text_direction": "rtl",
"line_spacing": 1000,
"vertical_align": "middle",
"img_url": "https://example.com/image.png",
"opacity": 1
}
}
],
"tags": [
"campaign",
"summer-2026"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.