{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-presence-history-devices-schema.json",
  "title": "Presence-History-Devices",
  "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-History-Devices",
  "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."
          },
          "campusName": {
            "type": "string",
            "minLength": 1,
            "description": "Campus name."
          },
          "startTime": {
            "type": "string",
            "minLength": 1,
            "description": "Start time."
          },
          "endTime": {
            "type": "string",
            "minLength": 1,
            "description": "End time."
          }
        },
        "required": [
          "companyId",
          "trackingId",
          "roomName",
          "roomId",
          "floorId",
          "floorName",
          "buildingId",
          "buildingName",
          "campusId",
          "campusName",
          "startTime",
          "endTime"
        ]
      }
    }
  },
  "required": [
    "content"
  ]
}