Skip to main content
Version: 6.0.0

SysGetQuestPageOffset

Retrieves the next/prev page of quests.

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

ServiceOperation
gamificationSYS_GET_QUEST_PAGE_OFFSET

Method Parameters​

ParameterDescription
encodedContextThe json context from the previous page request.
pageOffsetThe positive or negative page offset to fetch. Uses the last page retrieved using the context string to determine a starting point.

Usage​

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpY...",
"results": {
"count": 5,
"page": 2,
"items": [
{
"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": 1574809351418,
"version": 2,
"tasks": []
},
{
"questId": "quest001",
"questType": "unorderedComplete",
"questData": null,
"title": "quest001",
"description": "",
"category": "misc",
"extraData": null,
"createdAt": 1574266600502,
"updatedAt": 1574266600502,
"version": 1,
"tasks": []
}
],
"moreAfter": true,
"moreBefore": true
}
},
"status": 200
}