{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/indeed/json-schema/indeed-patch-employer-input-schema.json",
  "title": "PatchEmployerInput",
  "description": "Input for creating or updating an employer on Indeed.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/indeed-employers-api-openapi.yml#/components/schemas/PatchEmployerInput",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "A globally unique employer identifier composed of the ATS identifier and the employer's ID within that system."
    },
    "employerName": {
      "type": "string",
      "description": "The employer's display name. Required when creating a new employer, optional when updating an existing one."
    },
    "employerAttributes": {
      "$ref": "#/$defs/EmployerAttributes"
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "description": "A physical address.",
      "properties": {
        "streetAddress": {
          "type": "string",
          "description": "Street address line."
        },
        "streetAddress2": {
          "type": "string",
          "description": "Additional street address information."
        },
        "city": {
          "type": "string",
          "description": "City name."
        },
        "state": {
          "type": "string",
          "description": "State, province, or region."
        },
        "postalCode": {
          "type": "string",
          "description": "Postal or ZIP code."
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code."
        }
      }
    },
    "CountrySpecificAttributes": {
      "type": "object",
      "description": "Country-scoped employer attributes. Provide an ISO 3166-1 two-letter country code to specify the country.",
      "required": [
        "country"
      ],
      "properties": {
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2 country code.",
          "pattern": "^[A-Z]{2}$"
        },
        "websiteUrl": {
          "type": "string",
          "format": "uri",
          "description": "The employer's website URL for this country."
        },
        "phoneNumber": {
          "type": "string",
          "description": "The employer's contact phone number for this country."
        },
        "address": {
          "$ref": "#/$defs/Address"
        }
      }
    },
    "EmployerAttributes": {
      "type": "object",
      "description": "Additional attributes for an employer, including both global and country-specific settings.",
      "properties": {
        "employerType": {
          "type": "string",
          "description": "The type classification of the employer.",
          "enum": [
            "DIRECT_EMPLOYER",
            "STAFFING_AGENCY",
            "RECRUITING_FIRM"
          ]
        },
        "countrySpecificAttributes": {
          "type": "array",
          "description": "Attributes that vary by country, such as website URLs, phone numbers, and locale-specific information.",
          "items": {
            "$ref": "#/$defs/CountrySpecificAttributes"
          }
        },
        "localeSpecificAttributes": {
          "type": "array",
          "description": "Locale-specific employer attributes.",
          "items": {
            "$ref": "#/$defs/LocaleSpecificAttributes"
          }
        }
      }
    },
    "LocaleSpecificAttributes": {
      "type": "object",
      "description": "Locale-specific employer attributes for multilingual support.",
      "properties": {
        "locale": {
          "type": "string",
          "description": "IETF BCP 47 language tag."
        },
        "employerName": {
          "type": "string",
          "description": "Localized employer name."
        },
        "employerDescription": {
          "type": "string",
          "description": "Localized employer description."
        }
      }
    }
  }
}