The Id of the challenge.
The status of the quest.
Successful response
const response = await fetch('/partner-api/v2/admin/challenges/{challenge_id}/update-status', {
method: 'POST',
headers: {
"Content-Type": "multipart/form-data"
},
body: JSON.stringify({}),
});
const data = await response.json();
{
"quest": {
"id": "text",
"name": "text",
"priority": 0,
"description": "text",
"sponsor_name": "text",
"image_url": "text",
"point_threshold_requirement": 0,
"opt_in_text": "text",
"time_to_complete_minutes": 0,
"starts_at": 0,
"ends_at": 0,
"status": "draft",
"max_num_of_completions_per_user": 0,
"max_num_of_completions_for_program": 0,
"quest_type": "text",
"auto_opt_in_at_signup": false,
"created_at": 0,
"terms_and_conditions": "text",
"auto_claim_prize": false,
"enforce_order": false,
"claim_prize_header_text": "text",
"claim_prize_message": "text",
"claim_prize_cta": "text",
"remaining_num_of_completions_for_program": 0,
"quest_requirements": [
"text"
],
"prize": {
"point_reward_value": 0,
"sponsor_name": "text",
"lootbox": {
"id": "text",
"name": "text",
"description": "text",
"background_gradient_start_color": "text",
"background_gradient_stop_color": "text",
"image_box_together_url": "text",
"reward_choices": [
{
"id": "text",
"title": "text",
"subtitle": "text",
"category": "text",
"point_reward_value": 0,
"reward_uuids": [
"text"
],
"quantity": 0,
"image": "text",
"video": "text",
"probability": 0,
"current_tier_id": "text",
"rewards": [
{
"uuid": "text",
"name": "text",
"description": "text",
"image_url": "text",
"terms_and_conditions": "text"
}
]
}
]
},
"reward": {
"uuid": "text",
"name": "text",
"description": "text",
"image_url": "text",
"terms_and_conditions": "text"
}
}
}
}