V3 Surveys

Restore a survey

Restores a previously archived (soft-deleted) survey by id, clearing its archive marker so it reappears in the default list and becomes editable again. Works on any survey, including legacy question-based surveys, so this endpoint returns a minimal lifecycle acknowledgement rather than the full survey resource. Session cookie or x-api-key.

post/api/v3/surveys/{surveyId}/restore

Path parameters

surveyIdstring cuid2 required

Survey identifier.

Response

Survey restored successfully

Changes

Changed in 4 of the 21 revisions of this API.501

    • added the new service_unavailable enum value to the code response property for the response status 400

      response-property-enum-value-added

    • added the new service_unavailable enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new service_unavailable enum value to the code response property for the response status 403

      response-property-enum-value-added

    • added the new service_unavailable enum value to the code response property for the response status 429

      response-property-enum-value-added

    • added the new service_unavailable enum value to the code response property for the response status 500

      response-property-enum-value-added

    • added the new conflict enum value to the code response property for the response status 400

      response-property-enum-value-added

    • added the new conflict enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new conflict enum value to the code response property for the response status 403

      response-property-enum-value-added

    • added the new conflict enum value to the code response property for the response status 429

      response-property-enum-value-added

    • added the new conflict enum value to the code response property for the response status 500

      response-property-enum-value-added

    • added the new edge enum value to the invalid_params/items/referenceType response property for the response status 400

      response-property-enum-value-added

    • added the new edge enum value to the invalid_params/items/referenceType response property for the response status 401

      response-property-enum-value-added

    • added the new edge enum value to the invalid_params/items/referenceType response property for the response status 403

      response-property-enum-value-added

    • added the new edge enum value to the invalid_params/items/referenceType response property for the response status 429

      response-property-enum-value-added

    • added the new edge enum value to the invalid_params/items/referenceType response property for the response status 500

      response-property-enum-value-added

    • added the new endingCard enum value to the invalid_params/items/referenceType response property for the response status 400

      response-property-enum-value-added

    • added the new endingCard enum value to the invalid_params/items/referenceType response property for the response status 401

      response-property-enum-value-added

    • added the new endingCard enum value to the invalid_params/items/referenceType response property for the response status 403

      response-property-enum-value-added

    • added the new endingCard enum value to the invalid_params/items/referenceType response property for the response status 429

      response-property-enum-value-added

    • added the new endingCard enum value to the invalid_params/items/referenceType response property for the response status 500

      response-property-enum-value-added

    • added the new invalid_graph enum value to the invalid_params/items/code response property for the response status 400

      response-property-enum-value-added

    • added the new invalid_graph enum value to the invalid_params/items/code response property for the response status 401

      response-property-enum-value-added

    • added the new invalid_graph enum value to the invalid_params/items/code response property for the response status 403

      response-property-enum-value-added

    • added the new invalid_graph enum value to the invalid_params/items/code response property for the response status 429

      response-property-enum-value-added

    • added the new invalid_graph enum value to the invalid_params/items/code response property for the response status 500

      response-property-enum-value-added

    • added the new invalid_workflow_state enum value to the code response property for the response status 400

      response-property-enum-value-added

    • added the new invalid_workflow_state enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new invalid_workflow_state enum value to the code response property for the response status 403

      response-property-enum-value-added

    • added the new invalid_workflow_state enum value to the code response property for the response status 429

      response-property-enum-value-added

    • added the new invalid_workflow_state enum value to the code response property for the response status 500

      response-property-enum-value-added

    • added the new node enum value to the invalid_params/items/referenceType response property for the response status 400

      response-property-enum-value-added

    • added the new node enum value to the invalid_params/items/referenceType response property for the response status 401

      response-property-enum-value-added

    • added the new node enum value to the invalid_params/items/referenceType response property for the response status 403

      response-property-enum-value-added

    • added the new node enum value to the invalid_params/items/referenceType response property for the response status 429

      response-property-enum-value-added

    • added the new node enum value to the invalid_params/items/referenceType response property for the response status 500

      response-property-enum-value-added

    • added the new survey enum value to the invalid_params/items/referenceType response property for the response status 400

      response-property-enum-value-added

    • added the new survey enum value to the invalid_params/items/referenceType response property for the response status 401

      response-property-enum-value-added

    • added the new survey enum value to the invalid_params/items/referenceType response property for the response status 403

      response-property-enum-value-added

    • added the new survey enum value to the invalid_params/items/referenceType response property for the response status 429

      response-property-enum-value-added

    • added the new survey enum value to the invalid_params/items/referenceType response property for the response status 500

      response-property-enum-value-added

    • added the new workflow_not_executable enum value to the code response property for the response status 400

      response-property-enum-value-added

    • added the new workflow_not_executable enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new workflow_not_executable enum value to the code response property for the response status 403

      response-property-enum-value-added

    • added the new workflow_not_executable enum value to the code response property for the response status 429

      response-property-enum-value-added

    • added the new workflow_not_executable enum value to the code response property for the response status 500

      response-property-enum-value-added

    • added the new ai_output_too_long enum value to the code response property for the response status 400

      response-property-enum-value-added

    • added the new ai_output_too_long enum value to the code response property for the response status 401

      response-property-enum-value-added

    • added the new ai_output_too_long enum value to the code response property for the response status 403

      response-property-enum-value-added

    • added the new ai_output_too_long enum value to the code response property for the response status 429

      response-property-enum-value-added

    • added the new ai_output_too_long enum value to the code response property for the response status 500

      response-property-enum-value-added

    • endpoint added

      endpoint-added