curl --request POST \
--url https://api.questra.ai/surveys/{survey_id_or_slug}/changes/{changeId}/revert \
--header 'Authorization: Bearer <token>' \
--header 'X-Org-Id: <x-org-id>'{
"id": "<string>",
"survey_id": "<string>",
"idempotency_key": "<string>",
"type": "initial_programming",
"status": "in_progress",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"metadata": {}
}Reverts the survey to the state it was in at the specified change. Creates a new changeset of type revert.
curl --request POST \
--url https://api.questra.ai/surveys/{survey_id_or_slug}/changes/{changeId}/revert \
--header 'Authorization: Bearer <token>' \
--header 'X-Org-Id: <x-org-id>'{
"id": "<string>",
"survey_id": "<string>",
"idempotency_key": "<string>",
"type": "initial_programming",
"status": "in_progress",
"user_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"title": "<string>",
"metadata": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique ID or slug of the survey
ID of the change to revert to
The changeset created by the revert operation
initial_programming, ai_prompt, revert, manual, export in_progress, complete, error, open, closed