Skip to main content
DELETE /api/challenge-templates/:id Requires authentication.
Authorization
string
required
Bearer token obtained from /api/auth/login or /api/auth/signup. Format: Bearer <token>.
This action is permanent and cannot be undone. Deleting a seeded template removes it for all users.

Path parameters

id
number
required
The numeric ID of the challenge template to delete.

Example

curl --request DELETE \
  --url http://localhost:3000/api/challenge-templates/7 \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'

Response

204 No Content The template was deleted successfully. No response body is returned.

Errors

StatusDescription
401Missing, invalid, or expired token.
404No challenge template found for the given ID.

Build docs developers (and LLMs) love