Skip to main content
Version: 5.7.0

SysDeleteQuestTask

Deletes an embedded task in the specified quest. The id of the deleted task will be returned in the data.deletedTask field of the JSON result.

ServiceOperation
gamificationSYS_DELETE_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 delete

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"
]
},
"deletedTask": "18",
"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"
}
}
}
}