Update an existing userQuest
PUT/userQuest/:userQuestId
Update an existing userQuest
Request
Path Parameters
userQuestId userQuestIdrequired
The unique identifier for the userQuest
- application/json
Body
Data for updating an existing userQuest
state userQuestState (string)
Possible values: [default
, archived
, cancelled
]
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- default
UserQuest successfully updated
- application/json
- Schema
- Example (from schema)
Schema
lastComputedAt date-time
Time representation of the last computation of computedData
state userQuestState (string)
Possible values: [default
, archived
, cancelled
]
stage integer
The stage upon which points were granted
createdAt date-time
Time representation of userQuest creation
questId questId (string)
Unique identifier for Quest
userId uuid
Unique identifier
computedData string
Optional json data generated internally
id userQuestId (string)
Unique identifier for UserQuest
creatorData string
Optional json data provided by the user
{
"lastComputedAt": "2025-01-01T09:00:00.00Z",
"state": "default",
"stage": 3,
"createdAt": "2024-01-01T09:00:00.00Z",
"questId": "q3b19Z1n",
"userId": "a064a23e-d5ec-4ada-a2a5-194e556ee50b",
"computedData": "string",
"id": "UQ3b19Z1n",
"creatorData": "string"
}
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"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Internal Server Error"
}
Unexpected error
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "An unexpected error occured"
}
Loading...