v1
latestOpenAPI 3.0.02026-08-04265791.1 MBMissions
Validate
Validate a mission.
Fields
| Field | Format | Required | Description |
|---|---|---|---|
| compliant | boolean | x | Validated if true, rejected otherwise. |
| rating | number | Rating of the mission. | |
| republish | boolean | If true, republish this mission. | |
| republish_with_answers | boolean | If republish is true, control whether or not to prefill the republished mission with previous mission answers. | |
| reason_noncompliant | string | Explanation why the mission was not compliant. | |
| reason_noncompliant_key | string | Explanation key. |
post/public/api/missions/{id}/validate
Headers
Acceptstring
e.g. application/json
Response
OK
Example response
{
"validated_mission": {
"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",
"creator_id": "54ab03c6546847ee0d30089a",
"store_id": "54ab03c6546847ee0d30081a",
"finished_date": "2018-05-29T04:51:40.862Z",
"status": "finished",
"compliant": true,
"validated_date": "2018-05-30T04:51:40.862Z",
"rating": 100,
"republish_count": "3",
"type": "mission"
}
}