{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-update-admin-dealership-request-schema.json",
  "title": "UpdateAdminDealershipRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-fleet-settings-api-openapi.yml#/components/schemas/UpdateAdminDealershipRequest",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "onboarding_complete": {
      "type": "boolean"
    },
    "phone_number": {
      "type": "string"
    },
    "fleet_settings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fleet_id": {
            "type": "integer"
          },
          "repair_order_number_required": {
            "type": "boolean"
          },
          "allow_charge_later": {
            "type": "boolean"
          },
          "allow_manual_signature": {
            "type": "boolean"
          },
          "require_customer_vin": {
            "type": "boolean"
          },
          "guided_walkaround_enforced": {
            "type": "boolean"
          },
          "sales_lead_enabled": {
            "type": "boolean",
            "description": "whether Service to Sales lead generation is enabled for the fleet"
          },
          "sales_lead_offset_hours": {
            "type": "integer",
            "description": "how many hours prior to a contract end a sales lead should be created (1-12)"
          },
          "sales_lead_cms_config_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "email address the Service to Sales lead configuration should notify in ADF format."
          }
        }
      }
    }
  }
}