{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/webex/main/json-schema/webex-playlist-usage-schema.json",
  "title": "PlaylistUsage",
  "description": "Mapping of a playlist to the locations and features where it is used.",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-call-queue-settings-with-playlist-settings-api-openapi.yml#/components/schemas/PlaylistUsage",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identifier of the playlist."
    },
    "locations": {
      "type": "array",
      "description": "List of locations using this playlist.",
      "items": {
        "type": "object",
        "description": "Location and feature referencing this playlist.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Location identifier."
          },
          "name": {
            "type": "string",
            "description": "Location name."
          },
          "featureReference": {
            "type": "object",
            "description": "Feature referencing the playlist.",
            "properties": {
              "id": {
                "type": "string",
                "description": "Feature identifier."
              },
              "name": {
                "type": "string",
                "description": "Feature name."
              },
              "type": {
                "type": "string",
                "description": "Feature type."
              }
            },
            "required": [
              "id",
              "name",
              "type"
            ]
          }
        },
        "required": [
          "id",
          "name",
          "featureReference"
        ]
      }
    }
  },
  "required": [
    "id",
    "locations"
  ]
}