v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Campaigns

Delete Question

Delete a single question.

  • Restricted to campaigns of type mission.

  • If a single question is removed from a page, that page would be removed as well (unless its the only page of the campaign).

delete/public/api/campaigns/{id}/questions/{question_id}

Path parameters

question_idstring required

The id of the question

Headers

Acceptstring

e.g. application/json

Response

OK

campaign_idstring
created_datestring
updated_datestring
titlestring
descriptionstring
tagsstring[]
typestring
page_titlesstring[]
icon_urlstring
background_urlstring

Example response

{
  "campaign_id": "54ab03c6546847ee0d30086a",
  "created_date": "2021-05-23T04:45:02.020Z",
  "updated_date": "2021-05-23T04:51:40.862Z",
  "title": "Rockets campaign 1",
  "description": "campaign description here",
  "tags": [
    "tag1",
    "tag2"
  ],
  "type": "mission",
  "page_titles": [
    "Page 1"
  ],
  "icon_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401814/ji2yhtw926naemtsj6xr.png",
  "background_url": "https://res.cloudinary.com/www-yoobic-com/image/upload/a_exif/v1569401827/seuuqjbry1e4uusi0nta.png",
  "questions": [
    {
      "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc7",
      "question_type": "number",
      "question": "number of ice-cream flavors",
      "page_number": 1,
      "question_number": 1
    },
    {
      "question_id": "e8335f8d-109d-475f-b10b-113ce6876dc8",
      "question_type": "text",
      "question": "ice-cream flavors",
      "page_number": 1,
      "question_number": 2
    }
  ]
}