Skip to main content
Version: 5.7.0

SysGetMilestonePage

Retrieves the first page of milestones.

Note that this call does not return milestones (i.e. tasks) that are embedded within Quests. Use the Quests API for those.

After retrieving a page of milestones with this method use sysGetMilestonePageOffset to retrieve previous or next pages.

See the Generic Paged Queries documentation for creating the context object.

Supported searchCriteria fields include:

  • milestoneId
  • title
  • description
  • category
  • and extraData fields (must be prefixed by extraData) - i.e. extraData.actionIndex
ServiceOperation
gamificationSYS_GET_MILESTONE_PAGE

Method Parameters

ParameterDescription
contextThe json context for the page request.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6ey...",
"results": {
"count": 3,
"page": 1,
"items": [
{
"milestoneId": "1",
"questId": null,
"title": "Egg Crusher",
"description": "Crushing Eggs lifetime milestone",
"category": "mission",
"extraData": {
"secretMission": false,
"actionIndex": 4
},
"rewards": {
"experiencePoints": 30,
"achievement": "ACH001",
"currency": {
"coins": 5
},
"globalStatistics": {
"globalxp": 30
},
"statistics": {
"a3": 1,
"secretMissions": 1
}
},
"thresholds": {
"playerStatistics": {
"experienceLevel": 1,
"experiencePoints": 10,
"statistics": {
"returningDay": 7
}
}
},
"unlockThresholds": {
"playerStatistics": {
"experienceLevel": 2,
"experiencePoints": 10,
"statistics": {
"foodc": 5
}
},
"globalStatistics": {
"food_unlock": 1
}
},
"createdAt": 1574792720983,
"updatedAt": 1574792720983,
"version": 1
},
{
"milestoneId": "2",
"questId": null,
"title": "Another milestone",
"description": "Not yet fully defined",
"category": "mission",
"extraData": null,
"createdAt": 1574111511152,
"updatedAt": 1574111511152,
"version": 1
}
],
"moreAfter": true,
"moreBefore": false
}
}
}