Skip to main content
POST
/
api
/
captain
/
auth
/
password
Change password
curl --request POST \
  --url http://localhost:63372/api/captain/auth/password \
  --header 'Content-Type: application/json' \
  --cookie captain_session= \
  --data '
{
  "current_password": "old-password",
  "new_password": "new-password"
}
'
{
  "ok": true
}

Authorizations

captain_session
string
cookie
required

HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.

Body

application/json
current_password
string
required
Example:

"old-password"

new_password
string
required
Example:

"new-password"

Response

Success

ok
boolean
required
Example:

true