Achievements

Operations related to achievement management

Get achievements

get
/achievement

Retrieve achievements with optional filtering and pagination

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
pageNumberinteger · min: 1Optional

Page number for pagination

Default: 1
pageSizeinteger · min: 1 · max: 100Optional

Number of items per page

Default: 10
achievementTitlestringOptional

Filter by achievement title

levelstringOptional

Filter by achievement level

statusstringOptional

Filter by achievement status

Responses
200

Achievements retrieved successfully

application/json
get
/achievement

Create new achievement

post
/achievement/create

Create a new achievement with required fields

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
achievementTitlestring · max: 100Required

Title of the achievement

achievementDescriptionstring · max: 255Required

Description of the achievement

thresholdScorestringRequired

Minimum score required for the achievement

levelstringRequired

Level of the achievement

textColorstring · max: 20Required

Text color for the achievement display

backgroundColorstring · max: 20Required

Background color for the achievement display

statusstring · max: 20Optional

Status of the achievement

createdAtstring · date-timeOptional

Creation timestamp

updatedAtstring · date-timeOptional

Update timestamp

Responses
post
/achievement/create

Update achievement

put
/achievement/update/{achievementId}

Update an existing achievement by ID

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
achievementIdstring · uuidRequired

The ID of the achievement to update

Body
achievementTitlestring · max: 100Optional

Title of the achievement

achievementDescriptionstring · max: 255Optional

Description of the achievement

thresholdScorestringOptional

Minimum score required for the achievement

levelstringOptional

Level of the achievement

textColorstring · max: 20Optional

Text color for the achievement display

backgroundColorstring · max: 20Optional

Background color for the achievement display

statusstring · max: 20Optional

Status of the achievement

createdAtstring · date-timeOptional

Creation timestamp

updatedAtstring · date-timeOptional

Update timestamp

Responses
200

Achievement updated successfully

application/json
put
/achievement/update/{achievementId}

Last updated