{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-update-company-input-schema.json",
  "title": "UpdateCompanyInput",
  "description": "Partial company profile edit. Every key is optional; an empty string is treated as \"not sent\". Text fields must not contain HTML markup.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-companies-api-openapi.yml#/components/schemas/UpdateCompanyInput",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Company name. Trimmed; cannot be empty and cannot contain control characters."
    },
    "entityType": {
      "type": "string",
      "maxLength": 50
    },
    "industry": {
      "type": "string",
      "maxLength": 100
    },
    "ein": {
      "type": "string",
      "maxLength": 20
    },
    "yearFounded": {
      "type": "integer",
      "minimum": 1800,
      "maximum": 2100
    },
    "monthFounded": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12
    },
    "state": {
      "type": "string",
      "maxLength": 50
    },
    "website": {
      "type": "string",
      "maxLength": 500,
      "description": "An http(s) URL or a bare domain."
    },
    "description": {
      "type": "string",
      "maxLength": 2000
    },
    "annualRevenue": {
      "type": "string",
      "maxLength": 50
    },
    "monthlyExpenses": {
      "type": "string",
      "maxLength": 50
    },
    "accountingMethod": {
      "type": "string",
      "maxLength": 50
    },
    "fiscalYearEnd": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^\\d{2}-\\d{2}$",
      "description": "Fiscal year end as MM-DD; must be a real date (422 otherwise). An explicit null clears a stored value back to \"not confirmed\" (#2736); it is never defaulted to 12-31."
    },
    "currentAccountingSoftware": {
      "type": "string",
      "maxLength": 100
    },
    "revenueStreams": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 255
      }
    },
    "paymentProcessors": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 255
      }
    },
    "bankAccountCount": {
      "type": "string",
      "maxLength": 10
    },
    "creditCardCount": {
      "type": "string",
      "maxLength": 10
    },
    "hasCorporateCards": {
      "type": "boolean"
    },
    "hasMercury": {
      "type": "boolean"
    },
    "hasBrex": {
      "type": "boolean"
    },
    "hasRamp": {
      "type": "boolean"
    },
    "hasRho": {
      "type": "boolean"
    },
    "payrollProvider": {
      "type": "string",
      "maxLength": 100
    },
    "painPoint": {
      "type": "string",
      "maxLength": 2000
    },
    "chartOfAccountsNotes": {
      "type": "string",
      "maxLength": 5000
    },
    "migrationSource": {
      "type": "string",
      "maxLength": 50
    },
    "migrationComplete": {
      "type": "boolean"
    },
    "chartOfAccountsReviewed": {
      "type": "boolean"
    }
  }
}