Update data of a userQuest
POST/userQuest/:userQuestId/compute
Update data of a userQuest
Request
Path Parameters
userQuestId userQuestIdrequired
UserQuest id
- application/json
Body
property name* any
Responses
- 200
- 201
- 400
- 401
- 403
- 404
- 429
Failure during userquest computation process
- application/json
- Schema
Schema
string
userQuest updated successfully
- application/json
- Schema
- Example (from schema)
Schema
state userQuestState (string)
Possible values: [default, archived, cancelled]
computedData string
Optional json data generated internally
creatorData string
Optional json data provided by the user
createdAt date-time
Time representation of userQuest creation
questId questId (string)
Unique identifier for Quest
id userQuestId (string)
Unique identifier for UserQuest
stage integer
The stage upon which points were granted
lastComputedAt date-time
Time representation of the last computation of computedData
userId uuid
Unique identifier
{
"state": "default",
"computedData": "string",
"creatorData": "string",
"createdAt": "2024-01-01T09:00:00.00Z",
"questId": "q3b19Z1n",
"id": "UQ3b19Z1n",
"stage": 3,
"lastComputedAt": "2025-01-01T09:00:00.00Z",
"userId": "a064a23e-d5ec-4ada-a2a5-194e556ee50b"
}
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"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Too Many Requests"
}
Loading...