Update MFA settings

PATCH /api/my-account/mfa-settings

Update MFA settings for the user. This endpoint requires identity verification and the Identities scope. Controls whether MFA verification is required during sign-in when the user has MFA configured.

application/json

Body Required

  • requireMfaOnSignIn boolean Required

Responses

  • 204

    The MFA settings were updated successfully.

  • 400

    The request body is invalid.

  • 401

    Permission denied, identity verification is required or insufficient scope.

  • 403

    Forbidden

PATCH /api/my-account/mfa-settings
curl \
 --request PATCH 'https://[tenant_id].logto.app/api/my-account/mfa-settings' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"requireMfaOnSignIn":true}'
Request examples
{
  "requireMfaOnSignIn": true
}