{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webex/main/json-schema/webex-response-envelope-auto-csatdto-schema.json",
  "title": "ResponseEnvelopeAutoCSATDTO",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-auto-csat-api-openapi.yml#/components/schemas/ResponseEnvelopeAutoCSATDTO",
  "type": "object",
  "properties": {
    "meta": {
      "type": "object",
      "additionalProperties": {}
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutoCSATDTO"
      }
    }
  },
  "$defs": {
    "AutoCSATDTO": {
      "type": "object",
      "properties": {
        "organizationId": {
          "type": "string",
          "format": "uuid",
          "description": "ID of the contact center organization. This field is required for all bulk save operations.",
          "maxLength": 36,
          "minLength": 32,
          "pattern": "^[0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}$"
        },
        "id": {
          "type": "string",
          "description": "ID of this contact center resource. It should not be specified when creating a new resource. However, it is mandatory when updating a resource."
        },
        "version": {
          "type": "integer",
          "format": "int32",
          "description": "The version of this resource. For a newly created resource, it will be 0 unless specified otherwise."
        },
        "enabled": {
          "type": "boolean",
          "description": "Used to toggle the state of the Auto CSAT resource configuration from active to inactive and vice-versa. Mandatory for create/update operation."
        },
        "agentInclusionType": {
          "type": "string",
          "description": "Provides information whether all or specific agents are selected for Auto CSAT.",
          "enum": [
            "ALL",
            "SPECIFIC"
          ]
        },
        "surveyDataSource": {
          "type": "string",
          "description": "Survey Data Source Type",
          "enum": [
            "EXPERIENCE_MANAGEMENT",
            "GLOBAL_VARIABLE"
          ]
        },
        "selectedGlobalVariableId": {
          "type": "string",
          "description": "Selected Global Variable ID"
        },
        "createdTime": {
          "type": "integer",
          "format": "int64",
          "description": "This is the created time of the entity."
        },
        "lastUpdatedTime": {
          "type": "integer",
          "format": "int64",
          "description": "This is the updated time of the entity."
        }
      },
      "required": [
        "agentInclusionType",
        "enabled",
        "selectedGlobalVariableId",
        "surveyDataSource"
      ]
    }
  }
}