Zum Inhalt springen
aYOUne
← Konfiguration API

DataCollections

Singular: DataCollection — 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": "6ac31a39d6d4693b91aa9bee",
    "name": "REQUIRED_MAROON_HAN SOLO",
    "useInterval": false,
    "interval": "daily",
    "dailyAt": 9,
    "weeklyAt": 1,
    "monthlyAt": 1,
    "yearlyAt": 1,
    "reminder": false,
    "createdBy": "6045f4d25704710012485569",
    "groups": [],
    "shares": [],
    "createdAt": "2026-10-05T03:32:09.635Z",
    "updatedAt": "2026-10-05T03:32:09.635Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/datacollections/6ac31a39d6d4693b91aa9bee",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ac31a3dd6d4693b91aa9c42",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DATACOLLECTION",
        "href": "https://api.ayoune.app/config/datacollections/6ac31a39d6d4693b91aa9bee/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DATACOLLECTION",
        "href": "https://api.ayoune.app/config/datacollections/6ac31a39d6d4693b91aa9bee",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.364.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9432",
      "reset": "1791173205",
      "resetDate": "Mon Oct 05 2026"
    },
    "responseTime": 181.285456,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend