Challenges
Challenge creation and management for missions
Retrieve all challenges completed by the authenticated user for a specific game
Path parameters
idstring · uuidRequired
Game ID (UUID)
Responses
200
List of completed challenges
application/json
400
Invalid UUID
application/json
get
/api/games/{id}/challenges/completedCreate a new challenge for a game and mission (Admin only)
Body
descriptionstringRequiredExample:
Challenge description
Reach level 5 with a score over 1000gameIdstring · uuidRequiredExample:
Associated game ID
550e8400-e29b-41d4-a716-446655440000missionIdstring · uuidRequiredExample:
Associated mission ID
550e8400-e29b-41d4-a716-446655440001targetLevelinteger · min: 1RequiredExample:
Required level to complete challenge
5Responses
201
Challenge created successfully
application/json
400
Invalid request payload
application/json
post
/api/challengesUpdate an existing challenge (Admin only)
Path parameters
idstring · uuidRequired
Challenge ID (UUID)
Body
descriptionstringRequiredExample:
Challenge description
Reach level 5 with a score over 1000gameIdstring · uuidRequiredExample:
Associated game ID
550e8400-e29b-41d4-a716-446655440000missionIdstring · uuidRequiredExample:
Associated mission ID
550e8400-e29b-41d4-a716-446655440001targetLevelinteger · min: 1RequiredExample:
Required level to complete challenge
5Responses
204
Challenge updated successfully
400
Invalid request or challenge not found
application/json
patch
/api/challenges/{id}No content
Last updated