{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zoominfo/main/json-schema/zoominfo-upsert-data-payload-schema.json",
  "title": "UpsertDataPayload",
  "description": "Represents an entity that contains records collection.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zoominfo-entities-api-openapi.yml#/components/schemas/UpsertDataPayload",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UpsertRecord"
      },
      "description": "The primary data of the document"
    }
  },
  "$defs": {
    "GtmModelAttributes": {
      "type": "object",
      "additionalProperties": {},
      "description": "Attributes for GTM model records."
    },
    "UpsertRecord": {
      "type": "object",
      "required": [
        "type",
        "attributes"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for the resource"
        },
        "type": {
          "type": "string",
          "description": "The type of the resource",
          "default": "UpsertRecord",
          "pattern": "UpsertRecord"
        },
        "attributes": {
          "allOf": [
            {
              "$ref": "#/$defs/GtmModelAttributes"
            }
          ],
          "description": "The attributes defining the resource"
        }
      },
      "description": "Represents a record. that will be created or updated."
    }
  }
}