Skip to main content
Version: 5.7.0

SysCreateQuest

Creates the specified quest. Note that users will not see the quest in their data until the next time they log in.

An example questJson object:

{
"questId": "QUEST_CRUSH51",
"questJson": {
"title": "Crush 50 Eggs",
"description": "Crush 50 Eggs quest",
"category": "mission",
"questType": "unorderedMinimal",
"questData": "0",
"extraData": {
"difficulty": 1
},
"unlockThresholds": {
"playerStatistics": {
"experienceLevel": 2,
"experiencePoints": 10,
"statistics": {
"levelC": 5
}
},
"globalStatistics": {
"level_unlock": 1
}
},
"rewards": {
"experiencePoints": 30,
"globalStatistics": {
"globalxp": 30
},
"statistics": {
"a3": 1,
"secretMissions": 1
},
"achievement": "ACH001",
"currency": {
"coins": 5
}
}
}
}
ServiceOperation
gamificationSYS_CREATE_QUEST

Method Parameters

ParameterDescription
questIdThe unique id of the quest.
questJsonA json object describing the quest to create.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"questId": "QUEST_CRUSH52",
"questType": "unorderedMinimal",
"questData": "0",
"title": "Crush 50 Eggs",
"description": "Crush 50 Eggs quest",
"category": "mission",
"extraData": {
"difficulty": 1
},
"rewards": {
"experiencePoints": 1000
},
"createdAt": 1574801519979,
"updatedAt": 1574801519979,
"version": 1,
"tasks": []
}
}