{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-device-collection-response-schema.json",
  "title": "DeviceCollectionResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-devices-api-openapi.yml#/components/schemas/DeviceCollectionResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Device"
      }
    }
  },
  "$defs": {
    "Device": {
      "type": "object",
      "required": [
        "created"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the device."
        },
        "displayName": {
          "type": "string",
          "description": "A friendly name for the device."
        },
        "placeId": {
          "type": "string",
          "description": "The `placeId` field has been deprecated. Please use `workspaceId` instead."
        },
        "workspaceId": {
          "type": "string",
          "description": "The workspace associated with the device."
        },
        "personId": {
          "type": "string",
          "description": "The person associated with the device."
        },
        "orgId": {
          "type": "string",
          "description": "The organization associated with the device."
        },
        "capabilities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DeviceCapabilities"
          },
          "description": "The capabilities of the device."
        },
        "permissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DevicePermissions"
          },
          "description": "The permissions the user has for this device. For example, `xapi` means this user is entitled to using the `xapi` against this device."
        },
        "connectionStatus": {
          "$ref": "#/$defs/DeviceConnectionStatus"
        },
        "product": {
          "type": "string",
          "description": "The product name. A display friendly version of the device's `model`."
        },
        "type": {
          "type": "string",
          "description": "The product type."
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Tags assigned to the device."
        },
        "ip": {
          "type": "string",
          "description": "The current IP address of the device."
        },
        "activeInterface": {
          "$ref": "#/$defs/NetworkConnectivityType"
        },
        "mac": {
          "type": "string",
          "description": "The unique address for the network adapter."
        },
        "primarySipUrl": {
          "type": "string",
          "description": "The primary SIP address to dial this device."
        },
        "sipUrls": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "All SIP addresses to dial this device."
        },
        "serial": {
          "type": "string",
          "description": "Serial number for the device."
        },
        "software": {
          "type": "string",
          "description": "The operating system name data and version tag."
        },
        "upgradeChannel": {
          "type": "string",
          "description": "The upgrade channel the device is assigned to."
        },
        "created": {
          "type": "string",
          "description": "The date and time that the device was registered, in ISO8601 format."
        },
        "locationId": {
          "type": "string",
          "description": "The location associated with the device."
        },
        "workspaceLocationId": {
          "type": "string",
          "description": "The workspace location associated with the device. Deprecated, prefer `locationId`."
        },
        "errorCodes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Error codes coming from the device."
        },
        "firstSeen": {
          "type": "string",
          "description": "Timestamp of the first time device sent a status post."
        },
        "lastSeen": {
          "type": "string",
          "description": "Timestamp of the last time device sent a status post."
        },
        "managedBy": {
          "$ref": "#/$defs/ManagedBy"
        },
        "devicePlatform": {
          "$ref": "#/$defs/DevicePlatform"
        },
        "plannedMaintenance": {
          "type": "object",
          "description": "The planned maintenance for the device.",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "off",
                "on",
                "upcoming"
              ],
              "description": "The planned maintenance mode for the device"
            }
          }
        }
      }
    },
    "DeviceCapabilities": {
      "type": "string",
      "enum": [
        "xapi"
      ]
    },
    "DeviceConnectionStatus": {
      "type": "string",
      "enum": [
        "connected",
        "disconnected",
        "connected_with_issues",
        "offline_expired",
        "activating",
        "pending",
        "unknown",
        "offline_deep_sleep"
      ],
      "description": "The connection status of the device."
    },
    "DevicePermissions": {
      "type": "string",
      "enum": [
        "xapi:readonly",
        "xapi:all"
      ]
    },
    "DevicePlatform": {
      "type": "string",
      "enum": [
        "cisco",
        "microsoftTeamsRoom"
      ],
      "description": "Device platform"
    },
    "ManagedBy": {
      "type": "string",
      "enum": [
        "CISCO",
        "CUSTOMER",
        "PARTNER"
      ],
      "description": "Entity managing the device configuration."
    },
    "NetworkConnectivityType": {
      "type": "string",
      "enum": [
        "wired"
      ],
      "description": "The current network connectivity for the device."
    }
  }
}