Update password

POST /api/my-account/password

Update password for the user, a logto-verification-id in header is required for checking sensitive permissions.

application/json

Body Required

  • password string Required

    The new password for the user.

    Minimum length is 1.

Responses

  • The password was updated successfully.

  • Bad Request

  • Unauthorized

  • Permission denied, the verification record is invalid.

  • Unprocessable Content

POST /api/my-account/password
curl \
 --request POST https://[tenant_id].logto.app/api/my-account/password \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"password":"string"}'
Request examples
{
  "password": "string"
}