For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Archive survey
Archives an unpublished survey. A survey counts as published while its flag
is enabled, unless it's only in test mode without a schedule; archiving a
published survey returns 409 with error_code: cannot_archive_published.
Unpublish it in Amplitude first. Use dry_run=true to check whether a
survey can be archived. An already archived survey returns 404, like GET.
/v1/projects/{project_id}/surveys/{survey_id}Authorizations
Authorizationstringrequiredhttp
Path parameters
project_idstringrequiredAmplitude project identifier, backed by the canonical app ID.
12345pattern: ^[0-9]+$survey_idstringrequiredSurvey nudge identifier.
pattern: ^[0-9]+$Query parameters
dry_runbooleanValidate request without performing mutation.
falseHeader parameters
Idempotency-KeystringrequiredRequired on write operations. Keys aren't stored yet, so retrying a write with the same key performs it again; a retried create makes another resource. Check whether the first attempt succeeded before you retry.
min length: 8max length: 255Response
application/jsonWas this helpful?