Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

authChangePassword

PUT
/auth/password
curl --request PUT \
--url http://localhost:8300/auth/password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "current_password": "example", "new_password": "example" }'
Media typeapplication/json
object
current_password
required
string
new_password
required

Common passwords are refused

string
>= 10 characters <= 256 characters

Example generated

{
"current_password": "example",
"new_password": "example"
}

Changed; every session of the user is revoked

Bad access token, or wrong current_password (“current password is incorrect”); the 5th wrong one within 15 minutes also revokes the session

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input: “invalid JSON body”, or the failed rule (“invalid email”, “name must be 1-200 characters”, “password must be at least 10 characters”, “password is too common”, “roles must not be empty”, …)

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}