latestOpenAPI 3.1.0Apache License Version 2.02026-08-17498525913.3 KB

40169ccdec5c

auth-controller

Change password for current User (changePassword)

Change the password for the User which credentials are used to perform this REST API call. Be aware that previously generated JWT tokens will be still valid until they expire.

post/api/auth/changePassword

Request body

currentPasswordstring

The old password

newPasswordstring

The new password

Example request

{
  "currentPassword": "OldPassword",
  "newPassword": "NewPassword"
}

Response

OK

tokenstring

The JWT Access Token. Used to perform API calls.

refreshTokenstring

The JWT Refresh Token. Used to get new JWT Access Token if old one has expired.

scope'SYS_ADMIN' | 'TENANT_ADMIN' | 'CUSTOMER_USER' | 'REFRESH_TOKEN' | 'PRE_VERIFICATION_TOKEN' | 'MFA_CONFIGURATION_TOKEN'

Example response

{
  "token": "AAB254FF67D..",
  "refreshToken": "AAB254FF67D.."
}