Quest requirements

Create a new quest requirement.

post

Invoke this endpoint to add a new requirement to a quest.

Authorizations
X-API-KeystringRequired
Path parameters
quest_idstringRequired

the ID of the quest having a requirement added

Body
value_thresholdnumberRequired

the ActivityType value threshold needed to satisfy the QuestRequirement

descriptionstringRequired

a description of the quest requirement

activity_type_idstringRequired

the ID of the ActivityType that satisfies the QuestRequirement

prize_point_reward_valuenumberOptional

the amount of points to reward for completing the QuestRequirement

prize_loot_box_idstringOptional

the ID of a lootbox to reward for completing the QuestRequirement

prize_nft_loyalty_reward_idstringOptional

the ID of a reward to reward for completing the QuestRequirement

auto_claim_prizebooleanOptional

a boolean indicating if the prize should be automatically claimed when the QuestRequirement is completed

activity_type_subtypesarrayOptional

an array of ActivityTypeSubtype IDs that can be used to fulfill the QuestRequirement

check_in_interval_daysnumberOptional

If present, the cadence at which the user must perform the activity (e.g. a value of 3, with a value_threshold of 50 equates to spend $50 every 3 days).

cta_textstringOptional

Call to action description text.

cta_urlstringOptional

Call to action URL.

ordernumberOptional

If present, the order in which the requirement must be completed.

restricted_to_idsarrayOptional

a list containing IDs that are allowed to fulfill the QuestRequirement

Responses
200

Successful response

application/json
post
/v2/admin/quests/{quest_id}/quest-requirements
200

Successful response