User
Authorization
sudoToken AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
curl -X POST "https://authentication.eniris.be/user/2fa/recovery-code/reset" \ -H "Content-Type: application/json" \ -d '{}'{
"recoveryCodes": [
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string",
"string"
]
}{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid email address"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "NO_TOKEN_PROVIDED"
}{
"statusCode": 409,
"error": "Conflict",
"message": "2FA_IS_DISABLED"
}Providing a sudo token, regenerate new recovery codes for a user
A valid sudo token (proof of presence) can be obtained via the /2fa/{method}/verify endpoints. It has a 5 minutes validity period.