Create a new template
Changed onCreates a new working version of a template. The 'theme' field in the form corresponds to the theme folder identifier (referred to as 'themeId' in other endpoints). If a layout is provided, the template is saved as a designed (drawed) template with its layout.
When drawed is true (a layout-designer template): body is REQUIRED and must be non-empty (a null body returns 400 'body required when drawed'), and theme MUST resolve to a theme folder identifier — a host id or other non-folder id returns 400 'theme must be a folder identifier'. Provide drawedBody (the layout JSON) as well so the template is a real drawn template.
For a themed drawn template, body is a generated compatibility shell and is not the render source; rendering flows through the theme's template.vtl and drawedBody. The stored shell may contain /themes/null/ even when theme and themeName are correct. That value is benign for this template kind, and PUT-updating body will only cause the shell to be regenerated.
Request
- Base URLhttps://docs.anzworldline-solutions.com.au
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Template created successfully
Changes
- breaking
request body became required
- breaking
removed the media type
*/*from the request body - info
api operation id
saveNew_3removed and replaced withcreateTemplate - info
api tag
Templateadded - info
added the media type
application/jsonto the request body - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking