Updates an existing slide template by ID. Admin access required.
Body
Required
-
Unique identifier for the slide template
-
Name of the slide template
-
The layout of the slide
Values are
labeledList,list,mainImage,pyramid,tableOfContents,timeline,title,twoColumn, ortwoColumnWithImage. -
PartialTemplateConfig
Additional properties are allowed.
-
Optional decorative graphics
GraphicElement
GraphicElement
Additional properties are allowed.
-
Parameters for customizing the slide template
-
Timestamp when the slide template was created
-
Timestamp when the slide template was last updated
PUT
/admin/slide/layout/{id}
curl \
--request PUT 'http://localhost:8080/api/admin/slide/layout/{id}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"id":"template_12345","name":"Professional Business","layout":"labeledList","config":{},"graphics":[{}],"parameters":[{"key":"IMAGE_RATIO","label":"Image Ratio","defaultValue":16,"min":42.0,"max":42.0,"step":42.0,"description":"string"}],"createdAt":"2025-08-30T10:30:00Z","updatedAt":"2025-08-30T15:45:00Z"}'
Request examples
{
"id": "template_12345",
"name": "Professional Business",
"layout": "labeledList",
"config": {},
"graphics": [
{}
],
"parameters": [
{
"key": "IMAGE_RATIO",
"label": "Image Ratio",
"defaultValue": 16,
"min": 42.0,
"max": 42.0,
"step": 42.0,
"description": "string"
}
],
"createdAt": "2025-08-30T10:30:00Z",
"updatedAt": "2025-08-30T15:45:00Z"
}
Response examples (200)
{
"success": true,
"code": 200,
"message": "string",
"data": {
"id": "template_12345",
"name": "Professional Business",
"layout": "labeledList",
"config": {},
"graphics": [
{}
],
"parameters": [
{
"key": "IMAGE_RATIO",
"label": "Image Ratio",
"defaultValue": 16,
"min": 42.0,
"max": 42.0,
"step": 42.0,
"description": "string"
}
],
"createdAt": "2025-08-30T10:30:00Z",
"updatedAt": "2025-08-30T15:45:00Z"
}
}