Challenges

get
Authorizations
X-API-KeystringRequired
Responses
200

Successful response

application/json
get
/v2/admin/challenges
200

Successful response

post
Authorizations
X-API-KeystringRequired
Body
challenge_typestringOptional

The type of challenge the streak encompasses.

activity_type_idsarrayOptional

One or more activity types needed to be completed to complete the quest..

starts_atnumberOptional

When the challenge should start, in epoch seconds.

ends_atnumberOptional

When the challenge should end, in epoch seconds.

program_segment_idsarrayOptional

Which program segments (if any) the challenge should apply to.

prize_point_reward_valuenumberOptional

the amount of points to reward for completing the quest

prize_loot_box_idstringOptional

the ID of a lootbox to reward for completing the quest

prize_nft_loyalty_reward_idnumberOptional

the ID of a reward to reward for completing the quest

calendar_intervalstringOptional

The interval of the streak.

intervals_required_to_completenumberOptional

The number of intervals needed to complete the quest.

value_thresholdnumberOptional

The value threshold to complete the requirement.

max_num_of_completions_for_programnumberOptional

The maximum number of times this quest can be completed for the program.

restricted_to_idsarrayOptional

Menu item or group IDs to fulfill the requirements, array of comma-separated ids

Responses
200

Successful response

application/json
post
/v2/admin/challenges
200

Successful response

patch
Authorizations
X-API-KeystringRequired
Path parameters
challenge_idstringRequired

The Id of the challenge.

Body
challenge_typestringOptional

The type of challenge the streak encompasses.

activity_type_idsarrayOptional

One or more activity types needed to be completed to complete the quest..

starts_atnumberOptional

When the challenge should start, in epoch seconds.

ends_atnumberOptional

When the challenge should end, in epoch seconds.

program_segment_idsarrayOptional

Which program segments (if any) the challenge should apply to.

prize_point_reward_valuenumberOptional

the amount of points to reward for completing the quest

prize_loot_box_idstringOptional

the ID of a lootbox to reward for completing the quest

prize_nft_loyalty_reward_idnumberOptional

the ID of a reward to reward for completing the quest

calendar_intervalstringOptional

The interval of the streak.

intervals_required_to_completenumberOptional

The number of internvals needed to complete the quest.

value_thresholdnumberOptional

The value threshold to complete the requirement.

max_num_of_completions_for_programnumberOptional

The maximum number of times this quest can be completed for the program.

has_updated_menu_sampling_configbooleanOptional

Whether new menu items are included in this request

restricted_to_idsarrayOptional

Menu item or group IDs to fulfill the requirements, array of comma-separated ids

quest_requirementsarrayOptional

An array of quest requirements

Responses
200

Successful response

application/json
patch
/v2/admin/challenges/{challenge_id}
200

Successful response