SurveyArchivation

/api/v1/lead_ads/survey_forms/archive

A resource that allows you to archive a survey.

POST

Request example:

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

Response example:

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

The response contains all fields of Survey.

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

Possible response codes

  • 200 — ad saved
  • 404 — survey not found