{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gtm/main/json-schema/gtm-execute-export-request-body-schema.json",
  "title": "ExecuteExportRequestBody",
  "description": "Request body for running an export.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-platform-api-v1-api-openapi.yml#/components/schemas/ExecuteExportRequestBody",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "allOf": [
        {
          "$ref": "#/$defs/ExecuteExportRequest"
        }
      ],
      "description": "The primary data of the document"
    }
  },
  "$defs": {
    "ExecuteExportAttributes": {
      "type": "object",
      "required": [
        "objectType",
        "ids"
      ],
      "properties": {
        "objectType": {
          "allOf": [
            {
              "$ref": "#/$defs/ExportObjectType"
            }
          ],
          "description": "Whether `fields.id` are person (`contact`) or `company` IDs."
        },
        "ids": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int64"
          },
          "maxItems": 50,
          "description": "ZoomInfo IDs of the records to send, e.g. `[123456789, 987654321]`. Up to 50 per call."
        }
      },
      "description": "What to run an export against — one or more ZoomInfo record IDs, all handled together as a\nsingle run, not one at a time."
    },
    "ExecuteExportRequest": {
      "type": "object",
      "required": [
        "type",
        "attributes"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the resource",
          "default": "ExecuteExportRequest",
          "pattern": "ExecuteExportRequest"
        },
        "attributes": {
          "allOf": [
            {
              "$ref": "#/$defs/ExecuteExportAttributes"
            }
          ],
          "description": "The attributes defining the resource"
        }
      },
      "description": "A request to run an export, as a single API resource."
    },
    "ExportObjectType": {
      "type": "string",
      "enum": [
        "CONTACT",
        "COMPANY"
      ],
      "description": "Which kind of ZoomInfo record an execute call is sending — a person (`contact`) or a `company`."
    }
  }
}