form-templates
Reusable form templates and the nodes that use them.
List form templates
Returns all form templates as a list of base (summary) representations.
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.
Check whether a form template name is free
Returns true when no other form template of the tenant carries this exact name (case-sensitive), false otherwise. excludeId names the template being edited, so it does not count against its own name. Backs a live check while typing, ahead of the 409 updateFormTemplate answers on an actually taken name.
Get a page of form templates
Returns one page of the form templates for the administration's table (HET-2211), optionally filtered by a part of the name and by the status. Sortable by `name` - the default -, `status` and `lastModified`; any other field is answered with 400, and equal values keep the order of the ids. GET /form-templates stays the whole list for the export and for creating a form.
Get a form template by id
Returns the full form template, including its elements, for the given id. Responds 404 if it does not exist.
Delete a form template
Marks the form template with the given id as deleted. Responds 404 if it does not exist and 409 while a form is still built on it.
Get nodes of forms using a template
Returns the node representations of all forms created from the given form template. Responds 404 if the template does not exist.