PATCH /api/users/{userId}/logto-configs

Update the exposed portion of a user's logto config. This endpoint currently allows updating only the MFA skip state.

Path parameters

  • userId string Required

    The unique identifier of the user.

application/json

Body Required

  • mfa object Required
    Hide mfa attributes Show mfa attributes object
    • skipped boolean Required

      Set whether the user is marked as having skipped MFA binding.

    • skipMfaOnSignIn boolean Required
  • passkeySignIn object Required
    Hide passkeySignIn attribute Show passkeySignIn attribute object
    • skipped boolean Required

Responses

  • 200 application/json

    The exposed logto config fields were updated successfully.

    Hide response attributes Show response attributes object
    • mfa object Required
      Hide mfa attributes Show mfa attributes object
      • skipped boolean Required
      • skipMfaOnSignIn boolean Required
    • passkeySignIn object Required
      Hide passkeySignIn attribute Show passkeySignIn attribute object
      • skipped boolean Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    Not Found

PATCH /api/users/{userId}/logto-configs
curl \
 --request PATCH 'https://[tenant_id].logto.app/api/users/{userId}/logto-configs' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"mfa":{"skipped":true,"skipMfaOnSignIn":true},"passkeySignIn":{"skipped":true}}'
Request examples
{
  "mfa": {
    "skipped": true,
    "skipMfaOnSignIn": true
  },
  "passkeySignIn": {
    "skipped": true
  }
}
Response examples (200)
{
  "mfa": {
    "skipped": true,
    "skipMfaOnSignIn": true
  },
  "passkeySignIn": {
    "skipped": true
  }
}