Skip to content

Change Password

POST
/api/auth/password
curl --request POST \
--url https://kelpie.example.com/api/auth/password \
--header 'Content-Type: application/json' \
--data '{ "current_password": "example", "new_password": "example" }'

Change your own password. Your other sessions are logged out.

Media typeapplication/json
PasswordChange
object
current_password
required
Current Password
string
>= 1 characters <= 1024 characters
new_password
required
New Password
string
>= 1 characters <= 1024 characters

Example generated

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

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}