← Produktion API
ProductionResources
Singular: ProductionResource — Base-URL: https://production-api.ayoune.app — Zugriff: CRUD
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": "65e0b1a2121b7d48fe159c83",
"status": "available",
"materialTransport": false,
"productTransport": false,
"machineTransport": false,
"boundToMachine": false,
"width": 0,
"height": 0,
"length": 0,
"volume": 0,
"netWeight": 0,
"maxWeight": 0,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T16:32:34.914Z",
"updatedAt": "2024-02-29T16:32:34.914Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://production-api.ayoune.app/productionresources/65e0b1a2121b7d48fe159c83",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Lots",
"title": "MODEL_LOT",
"href": "https://api.ayoune.app/sale/lots",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "sale.lots"
},
{
"rel": "StorageAreas",
"title": "MODEL_STORAGEAREA",
"href": "https://api.ayoune.app/config/storageareas",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.storageareas"
},
{
"rel": "WorkCenters",
"title": "MODEL_WORKCENTER",
"href": "https://api.ayoune.app/production/workcenters",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "production.workcenters"
},
{
"rel": "Machines",
"title": "MODEL_MACHINE",
"href": "https://api.ayoune.app/config/machines",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.machines"
},
{
"rel": "Machines",
"title": "MODEL_MACHINE",
"href": "https://api.ayoune.app/config/machines",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.machines"
}
],
"debugId": "6a6198a22f837abff56457eb",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PRODUCTIONRESOURCE",
"href": "https://api.ayoune.app/production/productionresources/65e0b1a2121b7d48fe159c83/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PRODUCTIONRESOURCE",
"href": "https://api.ayoune.app/production/productionresources/65e0b1a2121b7d48fe159c83/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.19.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2420",
"reset": "1784784540",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 300.826265,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /productionresources |
Liste mit Filtern/Paginierung | production.productionresources.view |
| GET | /productionresources/:id |
Einzelner Datensatz | production.productionresources.view |
| POST | /productionresources |
Neuen Datensatz erstellen | production.productionresources.new |
| PUT | /productionresources |
Datensatz aktualisieren | production.productionresources.edit |
| DELETE | /productionresources/:id |
Datensatz löschen | production.productionresources.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.production.productionResources.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.production.productionResources.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.production.productionResources.create({ name: 'Foo' });