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