Update user logto config

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 attribute Show mfa attribute object
    • skipped boolean Required

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

Responses

  • 200 application/json

    The exposed logto config fields were updated successfully.

    Hide response attribute Show response attribute object
    • mfa object Required
      Hide mfa attribute Show mfa 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}}'
Request examples
{
  "mfa": {
    "skipped": true
  }
}
Response examples (200)
{
  "mfa": {
    "skipped": true
  }
}