aYOUne
← Konfiguration API

IoTDevices

Singular: IoTDevice — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "stats": {
      "netstat": [],
      "inOut": []
    },
    "maintenanceForecast": {
      "reasons": []
    },
    "_id": "6a94ffbb51f5b0211fc3910e",
    "active": true,
    "capabilities": [],
    "status": "online",
    "factoryNotes": "JOINT_IVORY_SAN HILL",
    "factoryTestResults": [],
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "last_active": "2026-08-31T04:14:51.879Z",
    "values": [],
    "createdAt": "2026-08-31T04:14:51.879Z",
    "updatedAt": "2026-08-31T04:14:53.372Z",
    "modifiedBy": "6045f4d25704710012485569"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/iotdevices/6a94ffbb51f5b0211fc3910e",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "CompanyLocations",
        "title": "MODEL_COMPANYLOCATION",
        "href": "https://api.ayoune.app/config/companylocations",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.companylocations"
      },
      {
        "rel": "Departments",
        "title": "MODEL_DEPARTMENT",
        "href": "https://api.ayoune.app/config/departments",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.departments"
      },
      {
        "rel": "WorkCenters",
        "title": "MODEL_WORKCENTER",
        "href": "https://api.ayoune.app/production/workcenters",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "production.workcenters"
      },
      {
        "rel": "Machines",
        "title": "MODEL_MACHINE",
        "href": "https://api.ayoune.app/config/machines",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.machines"
      },
      {
        "rel": "WallBoards",
        "title": "MODEL_WALLBOARD",
        "href": "https://api.ayoune.app/pm/wallboards",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "pm.wallboards"
      },
      {
        "rel": "IoTDeviceBlueprints",
        "title": "MODEL_IOTDEVICEBLUEPRINT",
        "href": "https://api.ayoune.app/iot/iotdeviceblueprints",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "iot.iotdeviceblueprints"
      }
    ],
    "debugId": "6a94ffbd51f5b0211fc39168",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_IOTDEVICE",
        "href": "https://api.ayoune.app/config/iotdevices/6a94ffbb51f5b0211fc3910e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_IOTDEVICE",
        "href": "https://api.ayoune.app/config/iotdevices/6a94ffbb51f5b0211fc3910e",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.153.0",
      "core": "2026.326.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "1327",
      "reset": "1788152756",
      "resetDate": "Mon Aug 31 2026"
    },
    "responseTime": 199.546176,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /iotdevices Liste mit Filtern/Paginierung config.iotdevices.view
GET /iotdevices/:id Einzelner Datensatz config.iotdevices.view
POST /iotdevices Neuen Datensatz erstellen config.iotdevices.new
PUT /iotdevices Datensatz aktualisieren config.iotdevices.edit
DELETE /iotdevices/:id Datensatz löschen config.iotdevices.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.config.ioTDevices.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.config.ioTDevices.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.config.ioTDevices.create({ name: 'Foo' });

Weiterführend