Remove TOTP MFA key

Remove TOTP MFA key

Disable MFA on this account using an TOTP token.

POSThttps://studio.edgeimpulse.com/v1/api/user/mfa/totp/clear
Body
totpToken*string

Valid TOTP token

Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/user/mfa/totp/clear', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "totpToken": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated