Skip to main content
Version: 5.7.0

SysUpdateQuest

Updates the specified quest. Note that only the fields present in the JSON object will be updated. (i.e. to leave ACL as is, don't include it in the questJson field).

ServiceOperation
gamificationSYS_UPDATE_QUEST

Method Parameters

ParameterDescription
questIdThe id of the quest to update
versionThe current revision of the quest
questJsonA json object describing the updated quest data. Only the fields present will be updated.

Usage

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