← planning API
PlanningModels
Singular: PlanningModel — Base-URL: https://planning-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
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": "6a701c0c47e626d9d1dec4d6",
"name": "DISTINCTIVE_AMARANTH_DUD BOLT",
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-08-03T04:41:48.390Z",
"updatedAt": "2026-08-03T04:41:48.390Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://planning-api.ayoune.app/planningmodels/6a701c0c47e626d9d1dec4d6",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a72c0d447e626d9d1ded66e",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PLANNINGMODEL",
"href": "https://api.ayoune.app/planning/planningmodels/6a701c0c47e626d9d1dec4d6/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PLANNINGMODEL",
"href": "https://api.ayoune.app/planning/planningmodels/6a701c0c47e626d9d1dec4d6/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.20.0",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2468",
"reset": "1785908958",
"resetDate": "Wed Aug 05 2026"
},
"responseTime": 191.509632,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /planningmodels |
Liste mit Filtern/Paginierung | planning.planningmodels.view |
| GET | /planningmodels/:id |
Einzelner Datensatz | planning.planningmodels.view |
| POST | /planningmodels |
Neuen Datensatz erstellen | planning.planningmodels.new |
| PUT | /planningmodels |
Datensatz aktualisieren | planning.planningmodels.edit |
| DELETE | /planningmodels/:id |
Datensatz löschen | planning.planningmodels.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.planning.planningModels.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.planning.planningModels.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.planning.planningModels.create({ name: 'Foo' });