Skip to main content
Version: 5.7.0

SysUpdateMilestone

Updates the specified milestone. 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 milestoneJson field).

ServiceOperation
gamificationSYS_UPDATE_MILESTONE

Method Parameters

ParameterDescription
milestoneIdThe id of the milestone to update
versionThe current revision of the milestone
milestoneJsonA json object describing the updated milestone 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": {
"milestoneId": "15",
"questId": null,
"title": "Winner Winner",
"description": "This is an updated description",
"category": "loyalty",
"extraData": {
"secretMission": false,
"actionIndex": 4
},
"rewards": {
"experiencePoints": 1000
},
"thresholds": {
"playerStatistics": {
"statistics": {
"wins": 50
}
}
},
"createdAt": 1574793309304,
"updatedAt": 1574793309304,
"version": 2
}
}