Update a quest
PUT/quest/:questId
Update a quest
Request
Path Parameters
The questId to update
- application/json
Body
Quest data
Possible values: <= 1000000
Possible values: <= 64 characters
Name of the quest
Possible values: <= 3000 characters
Possible values: >= 2 characters
Responses
- 200
- 401
- 403
- 404
- 500
- default
Quest successfully updated
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [daily
, weekly
, monthly
, hourly
]
Expiration date for the quest
Possible values: [open
, closed
]
Number of times this quest has been completed by the current user
Unique identifier for Project
URL to the quest's thumbnail image
Detailed descriptions of the different stages/applications of the quest
Unique identifier for the referee quest
Possible values: <= 64 characters
Name of the quest
Unique identifier for the QuestType
Quest-specific data in JSON format
The order in which the quest should be displayed
Time representation of entity creation
Unique identifier for the referrer quest
Number of times this quest has been completed.
List of prerequisite quests that must be completed before starting this quest
Possible values: <= 1000000
The amount of points you gain after finishing the quest
The index of the last stage (0 if not a StagesQuest)
Maximum allowed number of times for the quest to be completed by a single user
Unique identifier for Quest
{
"periodic": "daily",
"expiresAt": "2025-01-01T09:00:00.00Z",
"state": "open",
"myUserQuestCount": 2,
"projectId": "p2Duhf5N6",
"thumbnail": "https://file.playmakers.co/p2Duhf5N6/aUv0OhmsR.jpg",
"descriptions": "{\"short\":\"wishlist BF4 in order to obtain your points\",\"pre\":[\"stage 1 desc\",\"stage 2 desc\"]}",
"refereeQuestId": "Q3b19Z1n",
"name": "Game referral",
"questTypeId": "Q3b19Z1n",
"data": "string",
"rankOrder": 1,
"createdAt": "2024-01-01T09:00:00.00Z",
"referrerQuestId": "Q3b19Z1n",
"userQuestCount": 1,
"prerequisites": [
"q3b19Z1n"
],
"points": 50,
"maxStage": 5,
"userQuestsLimit": 3,
"id": "q3b19Z1n"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
{
"error": "string"
}
{
"error": "An unexpected error occured"
}