Zum Hauptinhalt springen

form-templates

Reusable form templates and the nodes that use them.

📄️Create or update a form template

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.