Skip to Content
bpms.ai
ReferenceAuth

Change the password

POST
/api/v1/auth/password

Replaces the password of the caller after verifying the current one, through the strategy of the session, and lifts the password-change-only restriction of the session. A wrong current password is not counted as a failed login.

Authorization

bearer
headerAuthorizationBearer <token>

The token of a session that createSession opened

Request Body

The current and the new password

application/json
  1. body
currentPassword*string

Current password

Lengthlength <= 1024
newPassword*string

New password

Lengthlength <= 1024

Response Body

The password is changed

Example Request
curl -X POST 'https://bpms.bpms.work/api/v1/auth/password' \  -H 'Content-Type: application/json' \  -d '{  "currentPassword": "string",  "newPassword": "string"}'
Example Response
Empty