UpdateSurvey replaces the survey metadata and draft question set.
PUT/api/v1/surveys/:id
Updates apply to the draft only. Already-published versions remain
immutable and continue to serve existing assignments. To roll out the
updated questions, call PublishSurvey after updating.
Parameters
- id: Required, survey ID (> 0).
- name: Required, 1-255 characters.
- description: Optional description.
- settings: Optional settings JSON (replaces existing settings).
- questions: Required, at least one question. Replaces the draft question set entirely.
Errors
- NOT_FOUND: Survey does not exist.
- INVALID_ARGUMENT: Invalid question configuration.
- FAILED_PRECONDITION: Survey is archived.
Request
Responses
- 200
- default
A successful response.
An unexpected error response.