aYOUne
← Konfiguration API

DataCollections

Singular: DataCollection — Base-URL: https://config-api.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": "6a618e5331196b877e85560b",
    "name": "ARROGANT_AMARANTH_GASGANO",
    "useInterval": false,
    "interval": "daily",
    "dailyAt": 9,
    "weeklyAt": 1,
    "monthlyAt": 1,
    "yearlyAt": 1,
    "reminder": false,
    "createdBy": "6045f4d25704710012485569",
    "groups": [],
    "createdAt": "2026-07-23T03:45:23.233Z",
    "updatedAt": "2026-07-23T03:45:23.233Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/datacollections/6a618e5331196b877e85560b",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a62df31f27d6098834b2af0",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DATACOLLECTION",
        "href": "https://api.ayoune.app/config/datacollections/6a618e5331196b877e85560b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DATACOLLECTION",
        "href": "https://api.ayoune.app/config/datacollections/6a618e5331196b877e85560b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.95.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "130",
      "reset": "1784865648",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 105.686953,
    "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