60d6c901bc4e
Save a questionnaire or template with its sections and questions
The builder's save, for a questionnaire or a template. sections and questions are the complete desired content, not a patch: rows present are created or updated, rows absent are deleted along with their answers and comments. name, description and dueDate are always written; status is not settable here and keeps its stored value. dueDate may be omitted or null — a template has no deadline of its own and always stores null, and on a questionnaire an omitted date clears it. The questionnaire must belong to the calling company — another company's is indistinguishable from a missing one and answers 404 — and a Retraced-owned questionnaire may only be saved by a Retraced admin. Once answer requests exist, an existing question's title, type, mandatory flag and options are frozen; adding a new question instead reopens every request so it can be answered. Moving the due date re-dates the still-open requests and notifies their answering companies. Answers the saved questionnaire in the same shape as the builder read.
Path parameters
Request body
Response
Default Response