Skip to content
getgeolens.com

Change Password

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

Change the current user’s password (requires current password).

Media type application/json
ChangePasswordRequest
object
current_password
required
Current Password
string
>= 1 characters <= 256 characters
new_password
required
New Password
string
>= 8 characters <= 256 characters
Example generated
{
"current_password": "example",
"new_password": "example"
}

Successful Response

Validation Error

Media type application/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": {}
}
]
}