v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Campaigns

Partial Update

Update a subset of properties of a campaign.
If questions are passed, they will replace the existing.

patch/public/api/campaigns/{id}

Path parameters

idstring required

The id of the campaign

Headers

Acceptstring

e.g. application/json

Request body

titlestring
descriptionstring

Example request

{
  "title": "<p>campaign title here updated</p>",
  "description": "campaign description here updated",
  "questions": [
    {
      "question_type": "number",
      "question": "number of ice-cream flavors",
      "page_number": 1,
      "question_number": 1
    },
    {
      "question_type": "text",
      "question": "ice-cream flavors",
      "page_number": 1,
      "question_number": 2
    },
    {
      "question": "Photo 2",
      "question_type": "photo",
      "page_number": 2,
      "question_number": 1,
      "question_attributes": {
        "allow_library": true,
        "hide_mobile": false,
        "mandatory": false
      }
    }
  ]
}

Response

OK