Skip to main content
Version: 5.7.0

SysGetQuestPage

Retrieves the first page of quests.

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

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

Supported searchCriteria fields include:

  • questId
  • title
  • description
  • category
  • and extraData fields (must be prefixed by extraData) - i.e. extraData.actionIndex
ServiceOperation
gamificationSYS_GET_QUEST_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": 5,
"page": 1,
"items": [
{
"questId": "QUEST_CRUSH50",
"questType": "unorderedMinimal",
"questData": "0",
"title": "Crush 50 Eggs",
"description": "Crush 50 Eggs quest",
"category": "mission",
"extraData": {
"difficulty": 1
},
"rewards": {
"experiencePoints": 30,
"achievement": "ACH001",
"currency": {
"coins": 5
},
"globalStatistics": {
"globalxp": 30
},
"statistics": {
"a3": 1,
"secretMissions": 1
}
},
"unlockThresholds": {
"playerStatistics": {
"experienceLevel": 2,
"experiencePoints": 10,
"statistics": {
"levelC": 5
}
},
"globalStatistics": {
"level_unlock": 1
}
},
"createdAt": 1574692241409,
"updatedAt": 1574692313569,
"version": 2,
"tasks": ["11"]
},
{
"questId": "QUEST_CRUSH51",
"questType": "unorderedMinimal",
"questData": "0",
"title": "Crush 50 Eggs",
"description": "Crush 50 Eggs quest",
"category": "mission",
"extraData": {
"difficulty": 1
},
"rewards": {
"experiencePoints": 30,
"achievement": "ACH001",
"currency": {
"coins": 5
},
"globalStatistics": {
"globalxp": 30
},
"statistics": {
"a3": 1,
"secretMissions": 1
}
},
"unlockThresholds": {
"playerStatistics": {
"experienceLevel": 2,
"experiencePoints": 10,
"statistics": {
"levelC": 5
}
},
"globalStatistics": {
"level_unlock": 1
}
},
"createdAt": 1574801362234,
"updatedAt": 1574801362234,
"version": 1,
"tasks": []
}
],
"moreAfter": true,
"moreBefore": false
}
}
}