Users
Endpoints for managing users
Create user with provided data. Required admin role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
musernamestring · min: 1RequiredExample:
Username of the user
john_doempasswordstring · min: 1RequiredExample:
Password of the user
securepassword123namestringOptionalExample:
Full name of the user
John DoeResponses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
post
/api/usersLinks a user to a competition. Required admin role.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Request to link a user to a competition
userIdinteger · int64RequiredExample:
ID of the user
1competitionIdinteger · int64RequiredExample:
ID of the competition
1001Responses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
post
/api/users/linkChanges the password for the current user. Requires current password verification.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
currentPasswordstringRequired
newPasswordstringRequired
Responses
200
OK
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
409
Conflict
*/*
500
Internal Server Error
*/*
post
/api/users/change-passwordLast updated
Was this helpful?