SurveyUnarchivation

/api/v1/lead_ads/survey_forms/unarchive

A resource that allows you to move a survey back from the archive.

POST

Request example:

POST /api/v1/lead_ads/survey_forms/unarchive?_form_ids__in=43,3952,552

Response example:

HTTP 200
[
  {
    "id": 43,
    "status": 1
    ...
  },
  {
    "id": 3952,
    "status": 1
    ...
  },
  {
    "id": 552,
    "status": 1
    ...
  }
]

The response contains all fields of Survey.

Note that unarchiving can succeed only if all specified surveys exist and are currently archived.

Possible response codes

  • 200 — ad saved
  • 404 — survey not found