Skip to main content
PUT /api/user-challenges/:id/abandon Requires authentication.
string
required
Bearer token obtained from /api/auth/login or /api/auth/signup. Format: Bearer <token>.
Abandoning a challenge cannot be undone. The challenge status is permanently set to ABANDONED. After abandoning, you can accept a new challenge.

Path parameters

number
required
The numeric ID of the user challenge to abandon.

Example

Response

200 OK Returns the updated user challenge object with status set to ABANDONED.
number
required
Unique numeric identifier for this user challenge.
string
required
UUID of the authenticated user.
number
required
ID of the challenge template this challenge is based on.
string
required
Updated status. Always ABANDONED after this operation.
string
required
ISO 8601 timestamp of when the challenge was started.
string
Always null for abandoned challenges.
string
Progress notes for the challenge. null if none were added.
string
required
ISO 8601 timestamp of when the record was created.
string
required
ISO 8601 timestamp of this update.
Example response

Errors