Claiming points of a userQuest
POST/userQuest/:userQuestId/claim
Claiming points of a userQuest
Request
Path Parameters
userQuestId userQuestIdrequired
UserQuest id
Responses
- 201
- 400
- 401
- 403
- 404
UserQuest claimed successfully
- application/json
- Schema
- Example (from schema)
Schema
stage integer
The stage upon which points were granted
createdAt date-time
Time representation of userQuest creation
state userQuestState (string)
Possible values: [default
, archived
, cancelled
]
creatorData string
Optional json data provided by the user
computedData string
Optional json data generated internally
userId uuid
Unique identifier
id userQuestId (string)
Unique identifier for UserQuest
questId questId (string)
Unique identifier for Quest
lastComputedAt date-time
Time representation of the last computation of computedData
{
"stage": 3,
"createdAt": "2024-01-01T09:00:00.00Z",
"state": "default",
"creatorData": "string",
"computedData": "string",
"userId": "a064a23e-d5ec-4ada-a2a5-194e556ee50b",
"id": "UQ3b19Z1n",
"questId": "q3b19Z1n",
"lastComputedAt": "2025-01-01T09:00:00.00Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Forbidden access"
}
NotFound
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "A mandatory item was not found"
}
Loading...