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