LeadFormArchivation

/api/v1/lead_ads/lead_forms/archive

A resource that allows you to archive a lead form.

POST

Request example:


   POST /api/v1/lead_ads/lead_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 LeadForm.

Please note that archiving can succeed only if all specified forms exist and are not currently archived.

Possible response codes

  • 200 — lead form saved
  • 404 — lead form not found