Providing a sudo token, regenerate new recovery codes for a user
sudoToken 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
curl -X POST "https://example.com/user/2fa/recovery-code/reset" \ -H "Content-Type: application/json" \ -d '{}'{ "recoveryCodes": [ "string", "string", "string", "string", "string", "string", "string", "string", "string", "string" ]}