{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-presence-device-schema.json",
  "title": "Presence-Device",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kontaktio-presences-api-openapi.yml#/components/schemas/Presence-Device",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "uniqueItems": true,
      "minItems": 1,
      "items": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "minLength": 1,
            "description": "ID of user’s company. You can only view information with your company’s id."
          },
          "trackingId": {
            "type": "string",
            "minLength": 1,
            "description": "Tracking ID of device for which presence was created."
          },
          "roomName": {
            "type": "string",
            "minLength": 1,
            "description": "Room name."
          },
          "roomId": {
            "type": "number",
            "description": "Room Id."
          },
          "floorId": {
            "type": "number",
            "description": "Floor Id."
          },
          "floorName": {
            "type": "string",
            "minLength": 1,
            "description": "Floor name."
          },
          "buildingId": {
            "type": "number",
            "description": "Building Id."
          },
          "buildingName": {
            "type": "string",
            "minLength": 1,
            "description": "Building name."
          },
          "campusId": {
            "type": "number",
            "description": "Campus Id.\n"
          },
          "campusName": {
            "type": "string",
            "minLength": 1,
            "description": "Campus name."
          },
          "startTime": {
            "type": "string",
            "minLength": 1,
            "description": "Start time."
          },
          "endTime": {
            "type": "string",
            "minLength": 1,
            "description": "End time."
          },
          "entityId": {
            "type": "number",
            "deprecated": true
          },
          "entityName": {
            "type": "string",
            "minLength": 1,
            "deprecated": true
          },
          "entityTypeId": {
            "type": "number",
            "deprecated": true
          },
          "entityTypeName": {
            "type": "string",
            "minLength": 1,
            "deprecated": true
          }
        }
      }
    }
  }
}