curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/user/mfa/totp/set-key \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"key": "<string>",
"totpToken": "<string>"
}'
{
"success": true,
"error": "<string>",
"recoveryCodes": [
"<string>"
]
}
Enable MFA on this account using an TOTP token. First create a new key via userGenerateNewTotpMfaKey
.
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/user/mfa/totp/set-key \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"key": "<string>",
"totpToken": "<string>"
}'
{
"success": true,
"error": "<string>",
"recoveryCodes": [
"<string>"
]
}
OK
The response is of type object
.