Zum Inhalt springen
aYOUne
← Konfiguration API

AlertCategories

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

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": "6a65e719d375958d8b1c4400",
    "key": "workcenter",
    "active": true,
    "color": "#f97316",
    "createdAt": "2026-07-26T10:53:13.280Z",
    "description": "Arbeitsplatz-bezogene Meldungen: Belegung, Rüstzeiten, offene Rückmeldungen.",
    "icon": "factory",
    "isDraft": true,
    "name": "Arbeitsplätze",
    "sortOrder": 60,
    "updatedAt": "2026-10-11T01:20:27.154Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/alertcategories/6a65e719d375958d8b1c4400",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6acb043b639a90c479270480",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_ALERTCATEGORY",
        "href": "https://api.ayoune.app/config/alertcategories/6a65e719d375958d8b1c4400/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_ALERTCATEGORY",
        "href": "https://api.ayoune.app/config/alertcategories/6a65e719d375958d8b1c4400",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8814",
      "reset": "1791691321",
      "resetDate": "Sun Oct 11 2026"
    },
    "responseTime": 1788.015112,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend