{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gtm/main/json-schema/gtm-audience-model-update-schema.json",
  "title": "AudienceModelUpdate",
  "description": "Response containing a single ZoomInfo Audience",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-marketing-api-v1-api-openapi.yml#/components/schemas/AudienceModelUpdate",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "allOf": [
        {
          "$ref": "#/$defs/AudienceUpdate"
        }
      ],
      "description": "The primary data of the document"
    }
  },
  "$defs": {
    "AudienceAttributesUpdate": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the audience"
        }
      },
      "description": "Attributes defining a ZoomInfo Audience"
    },
    "AudienceUpdate": {
      "type": "object",
      "required": [
        "id",
        "type",
        "attributes"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for the resource"
        },
        "type": {
          "type": "string",
          "description": "The type of the resource",
          "default": "Audience",
          "pattern": "Audience"
        },
        "attributes": {
          "allOf": [
            {
              "$ref": "#/$defs/AudienceAttributesUpdate"
            }
          ],
          "description": "The attributes defining the resource"
        }
      },
      "description": "ZoomInfo Audience"
    }
  }
}