Skip to main content

Questionnaires

The Management API can replace the live SurveyJS model of a questionnaire owned by your organisation. This operation publishes immediately and removes any older autosaved draft from the admin editor.
This endpoint changes the questionnaire shown to patients immediately. Send the complete SurveyJS model, not a partial patch.

Update a Questionnaire Model

Required permission: questionnaire:write

Request Body

object
required
The complete SurveyJS questionnaire model to publish.
object
The complete SurveyJS theme. If omitted, the current live theme is preserved.

Response

The endpoint returns 404 when the questionnaire does not belong to the authenticated organisation.