{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webex/main/json-schema/webex-agent-personal-greeting-dto-agent-personal-greetings-with-attribute-tag-schema.json",
  "title": "AgentPersonalGreetingDTO_AgentPersonalGreetingsWithAttributeTag",
  "description": "Agent Personal Greeting Agent Personal Greetings With Attribute Tag schema.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-agent-personal-greeting-files-api-openapi.yml#/components/schemas/AgentPersonalGreetingDTO_AgentPersonalGreetingsWithAttributeTag",
  "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."
    },
    "name": {
      "type": "string",
      "description": "A name for the Agent's personal greeting file. It should have valid extension i.e. .wav ",
      "maxLength": 80,
      "minLength": 0,
      "pattern": "^[a-zA-Z0-9._\\-\\s]*$"
    },
    "contentType": {
      "type": "string",
      "description": "Indicates Content-Type of the Audio file. It can take one of these values: AUDIO_WAV, AUDIO_X_WAV",
      "enum": [
        "AUDIO_WAV",
        "TEXT_HTML",
        "TEXT_PHP",
        "AUDIO_X_WAV",
        "APPLICATION_OCTET_STREAM"
      ]
    },
    "blobId": {
      "type": "string",
      "description": "Identifier for the audio file."
    },
    "url": {
      "type": "string",
      "format": "url",
      "description": "Audio file download url."
    },
    "agentId": {
      "type": "string",
      "description": "Agent Id with which this greeting file is to be associated with.",
      "minLength": 1
    },
    "attributeTag": {
      "type": "string",
      "description": "This is used to identify the purpose of a greeting.",
      "maxLength": 80,
      "minLength": 0,
      "pattern": "^[a-zA-Z0-9_-]*$"
    },
    "firstName": {
      "type": "string",
      "description": "First Name of the Agent with whom this greeting file is to be associated with."
    },
    "lastName": {
      "type": "string",
      "description": "Last Name of the Agent with whom this greeting file is to be associated with."
    },
    "email": {
      "type": "string",
      "description": "Email of the Agent with whom this greeting file is to be associated with."
    },
    "agentActive": {
      "type": "boolean",
      "description": "Indicates whether the Agent with whom this greeting file is to be associated with is active or not active"
    },
    "ciUserId": {
      "type": "string",
      "description": "Id of the Agent in common identity with whom this greeting file is to be associated with."
    },
    "audioFile": {
      "type": "string",
      "format": "binary",
      "description": "Audio File."
    },
    "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": [
    "agentId",
    "contentType",
    "name"
  ]
}