Skip to main content
Version: 5.7.0

SysUpdateQuestTask

Updates an embedded task in the specified quest. The id of the newly updated task will be returned in the data.updatedTask field of the JSON result.

ServiceOperation
gamificationSYS_UPDATE_QUEST_TASK

Method Parameters

ParameterDescription
questIdThe quest the task belongs to
versionThe current revision of the parent quest. (Note - not the version of the embedded task)
taskIdThe id of the task to update
taskJsonA json object describing the updated task 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": 1574863558897,
"version": 4,
"tasks": [
"17"
]
},
"updatedTask": "17",
"tasks": {
"17": {
"title": "Winner Winner",
"description": "An updated task description",
"category": "loyalty",
"extraData": {
"secretMission": false,
"actionIndex": 4
},
"rewards": {
"experiencePoints": 1000
},
"thresholds": {
"playerStatistics": {
"statistics": {
"wins": 50
}
}
},
"createdAt": 1574820663140,
"updatedAt": 1574863558901,
"version": 2,
"taskId": "17"
}
}
}
}