Create or update a form template
PUT/form-templates
Creates a new form template when the payload has no id, otherwise updates the existing one. Only a draft may be changed. An already-published template may only be changed to record a recall (status RECALLED); any other edit to it is rejected with 400. A recalled template stays frozen - it can neither be edited nor become a DRAFT again (400) - but it may be published again (status PUBLISHED), which like a recall stores the status alone, so the template goes out again exactly as it was recalled; a repeated recall changes nothing, and a correction is published as a duplicate. A draft has no publication to recall (400). An element id that belongs to another template or to a dashboard panel is refused with 409, an element id given twice with 400. Responds 409 as well when another form template of the tenant already has this name. Returns the saved template.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- default
The updated or created form template
the default error response
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Entity not found.
Conflict — an object with the same unique key already exists.
the default error response