Skip to content

Change the signed-in member's password

POST
/account/change-password
curl --request POST \
--url https://acme.mykreezalid.com/front_api/v1/account/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "password": "example" }'

Replaces the signed-in member’s password with the one you send. The current password is not asked for. Existing access tokens stay valid.

Media typeapplication/json
object
password
required

The new password.

string format: password

Example generated

{
"password": "example"
}

The password is changed.

Media typeapplication/json
object
code
integer
status
string
message
string

Example

{
"code": 200,
"status": "success",
"message": "Password has successfully been updated"
}

password not provided in body when password is missing or empty.

Media typeapplication/json
object
code
integer
success
boolean
message
string

Example

{
"code": 401,
"success": false,
"message": "password not provided in body"
}

No valid access token was sent, or the new password was refused (You cannot access this resource).

Media typeapplication/json

Error body returned by the Front API when it refuses a request.

object
code

HTTP status code, repeated in the body.

integer
status
string
message

Human-readable reason.

string

Example

{
"code": 403,
"status": "error",
"message": "Token not found in request"
}