{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reddit/json-schema/reddit-update-business-request-schema.json",
  "title": "UpdateBusinessRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reddit-businesses-api-openapi.yml#/components/schemas/UpdateBusinessRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "$ref": "#/$defs/name-6"
        },
        "industry": {
          "$ref": "#/$defs/industry"
        },
        "country": {
          "$ref": "#/$defs/country"
        },
        "website_url": {
          "$ref": "#/$defs/website_url"
        },
        "phone": {
          "$ref": "#/$defs/phone"
        },
        "primary_contact_id": {
          "$ref": "#/$defs/primary_contact_id"
        },
        "agency_affiliated": {
          "$ref": "#/$defs/agency_affiliated"
        }
      }
    }
  },
  "$defs": {
    "agency_affiliated": {
      "type": "boolean",
      "description": "Whether the business is affiliated with an agency."
    },
    "components_enums_industry_type": {
      "description": "The industry type.",
      "type": "string",
      "enum": [
        "ADULT",
        "ADVERTISING",
        "ALCOHOL",
        "AUTO",
        "CLOTHING_AND_FASHION",
        "CONSULTING",
        "CONSUMER_PACKAGED_GOODS",
        "DATING",
        "EDUCATION",
        "EMPLOYMENT",
        "ENTERTAINMENT",
        "FINANCIAL_SERVICES",
        "GAMBLING_AND_FANTASY_SPORTS",
        "GAMING",
        "HEALTH_AND_BEAUTY",
        "OTHER",
        "POLITICS_AND_GOVERNMENT",
        "PUBLISHING",
        "REAL_ESTATE",
        "RESTAURANTS_AND_FOOD",
        "RETAIL_AND_ECOMMERCE",
        "SPORTS",
        "TECH_B2B",
        "TECH_B2C",
        "TECH_OTHER",
        "TRAVEL"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "The business's country code ([ISO 3166-1 alpha-2](https://www.iso.org/iso-3166-country-codes.html)). If unavailable, set to `Other`."
    },
    "industry": {
      "$ref": "#/$defs/components_enums_industry_type",
      "description": "The business's industry."
    },
    "name-6": {
      "type": "string",
      "description": "The name of the business."
    },
    "phone": {
      "type": [
        "string",
        "null"
      ],
      "description": "The business's phone number."
    },
    "primary_contact_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The ID of the business's primary contact."
    },
    "website_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The business's website URL."
    }
  }
}