{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-announcement-response-with-playlist-schema.json",
  "title": "AnnouncementResponseWithPlaylist",
  "description": "Response containing announcement details and available playlists.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-announcement-repository-api-openapi.yml#/components/schemas/AnnouncementResponseWithPlaylist",
  "type": "object",
  "required": [
    "id",
    "name",
    "fileSize",
    "mediaFileType",
    "lastUpdated",
    "featureReferenceCount"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the announcement."
    },
    "name": {
      "type": "string",
      "description": "Name of the announcement."
    },
    "fileName": {
      "type": "string",
      "description": "File name of the uploaded binary announcement greeting."
    },
    "fileSize": {
      "type": "string",
      "description": "Size of the file in kilobytes."
    },
    "mediaFileType": {
      "type": "string",
      "description": "Media file type of the announcement file."
    },
    "lastUpdated": {
      "type": "string",
      "description": "Last updated timestamp (in UTC format) of the announcement."
    },
    "featureReferenceCount": {
      "type": "number",
      "description": "Reference count of the call features this announcement is assigned to."
    },
    "featureReferences": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FeatureReferenceObject"
      },
      "description": "Call features referenced by this announcement."
    },
    "playlists": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PlaylistObject"
      },
      "description": "List of playlist available for selection."
    },
    "isTextToSpeech": {
      "type": "boolean",
      "description": "Indicates whether the announcement is text-to-speech."
    },
    "voice": {
      "type": "string",
      "description": "Voice used for text-to-speech announcement."
    },
    "language": {
      "type": "string",
      "description": "Language code for the text-to-speech announcement."
    },
    "text": {
      "type": "string",
      "description": "Text content for text-to-speech announcement."
    }
  },
  "$defs": {
    "FeatureReferenceObject": {
      "type": "object",
      "description": "Metadata describing a call feature that references an announcement.",
      "required": [
        "id",
        "name",
        "type",
        "locationId",
        "locationName"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the call feature referenced. The call Feature can be Auto Attendant, Call Queue or Music On hold."
        },
        "name": {
          "type": "string",
          "description": "Name of the call feature referenced."
        },
        "type": {
          "type": "string",
          "description": "Resource Type of the call feature."
        },
        "locationId": {
          "type": "string",
          "description": "Unique identifier of the location."
        },
        "locationName": {
          "type": "string",
          "description": "Location name of the announcement file."
        }
      }
    },
    "PlaylistObject": {
      "type": "object",
      "description": "Basic playlist metadata available for announcement selection.",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the playlist."
        },
        "name": {
          "type": "string",
          "description": "Unique name for the playlist."
        }
      }
    }
  }
}