Change a user password, authenticating by providing the old password and a sudo or access token (in 2FA is disabled)
A valid sudo token (proof of presence) can be obtained via the /2fa/{method}/verify endpoints. It has a 5 minutes validity period.
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/user/password/old-password" \ -H "Content-Type: application/json" \ -d '{ "oldPassword": "string", "newPassword": "stringst" }'nulllength <= 256Must contain uppercase, lowercase, and a digit
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).*$8 <= length <= 256