Skip to main content
POST
/
changeAthletePassword
Change athlete password
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/changeAthletePassword \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "password": "NewSecurePass1!",
  "user_name": "johndoe"
}
'

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
password
string<password>
required

New password

Example:

"NewSecurePass1!"

user_name
string

Optional: update username

Example:

"johndoe"

Response

200

Password changed