Challenges

Challenge creation and management for missions

Get challenges for a game

get
/api/games/{id}/challenges

Retrieve all active challenges for a specific game

Path parameters
idstring · uuidRequired

Game ID (UUID)

Responses
chevron-right
200

List of challenges

application/json
get
/api/games/{id}/challenges

Get user completed challenges by game

get
/api/games/{id}/challenges/completed

Retrieve all challenges completed by the authenticated user for a specific game

Path parameters
idstring · uuidRequired

Game ID (UUID)

Responses
chevron-right
200

List of completed challenges

application/json
get
/api/games/{id}/challenges/completed

Create a new challenge

post
/api/challenges

Create a new challenge for a game and mission (Admin only)

Body
descriptionstringRequired

Challenge description

Example: Reach level 5 with a score over 1000
gameIdstring · uuidRequired

Associated game ID

Example: 550e8400-e29b-41d4-a716-446655440000
missionIdstring · uuidRequired

Associated mission ID

Example: 550e8400-e29b-41d4-a716-446655440001
targetLevelinteger · min: 1Required

Required level to complete challenge

Example: 5
Responses
post
/api/challenges

Update a challenge

patch
/api/challenges/{id}

Update an existing challenge (Admin only)

Path parameters
idstring · uuidRequired

Challenge ID (UUID)

Body
descriptionstringRequired

Challenge description

Example: Reach level 5 with a score over 1000
gameIdstring · uuidRequired

Associated game ID

Example: 550e8400-e29b-41d4-a716-446655440000
missionIdstring · uuidRequired

Associated mission ID

Example: 550e8400-e29b-41d4-a716-446655440001
targetLevelinteger · min: 1Required

Required level to complete challenge

Example: 5
Responses
patch
/api/challenges/{id}

No content

Last updated