aYOUne
← iot API

IoTDeviceBlueprints

Singular: IoTDeviceBlueprint — Base-URL: https://iot.ayoune.app — Zugriff: CRUD

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": {
    "_id": "6a5658d882b264668afafcbb",
    "slug": "ayoune-base-firmware-esp32",
    "board": "esp32",
    "buildStatus": "built",
    "chipFamily": "ESP32",
    "components": [],
    "createdAt": "2026-07-14T15:42:16.664Z",
    "description": "Komponentenlose Adoptions-Firmware für webflash.ayoune.app — WiFi via Improv, NVS-Config, MQTT-Uplink, OTA. Wird zur Laufzeit gepaart (kein Blueprint-Build pro Gerät).",
    "deviceType": "mcu",
    "dsl": "device:\n  type: mcu\n  board: esp32\n  interval: 30\ncomponents: []",
    "isBaseFirmware": true,
    "name": "aYOUne Base-Firmware (ESP32)",
    "seedVersion": 1,
    "targetPlatform": "esp32",
    "updatedAt": "2026-07-14T18:59:28.047Z",
    "buildStatusMessage": "built 2026.07.14.55397",
    "firmwareVersion": "2026.07.14.55397",
    "_artifact": "6a5687102dd7512bc5968c26"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://iot.ayoune.app/iotdeviceblueprints/6a5658d882b264668afafcbb",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a62e4057916397554624516",
    "errors": [],
    "actions": [],
    "version": {
      "host": "2026.35.1",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2424",
      "reset": "1784868468",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 96.12945,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend