User
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
curl -X PUT "https://authentication.eniris.be/user/password/old-password" \ -H "Content-Type: application/json" \ -d '{ "oldPassword": "string", "newPassword": "stringst" }'length <= 256^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).*$8 <= length <= 256Must contain uppercase, lowercase, and a digit
application/json
application/json
null{
"statusCode": 400,
"error": "Bad Request",
"message": "Password must contain at least one uppercase character"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "NO_TOKEN_PROVIDED"
}{
"statusCode": 429,
"error": "Too many requests",
"message": "TOO_MANY_FAILED_PASSWORD_CHECKS",
"retryAfter": 0
}{
"statusCode": 500,
"error": "Internal server error",
"message": "NO_PASSWORD_INFO"
}