v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Missions

Book

Book an available mission.

Important The mission must be assigned before booking: error message: "Mission must have an assigned user before it can be booked. Please call the assign endpoint prior to booking the mission."

If the mission was republished with answers during the validation of a non-compliant mission, the booked mission will contain:

  • original_mission_id

  • original_reason_noncompliant

  • original_mission_answers

The original_mission_answers can be used as a starting point for the answers provided to /missions/{id}/finish.

post/public/api/missions/{id}/book

Headers

Acceptstring

e.g. application/json

Response

OK

mission_idstring
titlestring
created_datestring
updated_datestring
campaign_idstring
user_idstring
store_idstring
statusstring
typestring

Example response

{
  "mission_id": "54ab03c6546847ee0d30084a",
  "title": "Rockets mission 1",
  "created_date": "2018-05-23T04:51:40.862Z",
  "updated_date": "2018-05-23T04:51:40.862Z",
  "campaign_id": "54ab03c6546847ee0d30088a",
  "user_id": "54ab03c6546847ee0d30089a",
  "store_id": "54ab03c6546847ee0d30081a",
  "status": "booked",
  "type": "mission"
}