← Produktion API
MachineUtilizations
Singular: MachineUtilization — 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": "65e0b19f121b7d48fe159c35",
"_productionOrders": [],
"_assignments": [],
"_products": [],
"utilization": 0,
"maxUtilizationValue": 0,
"currentUtilizationValue": 0,
"minUtilization": 100,
"maxUtilization": 100,
"utilizationMode": "dimension",
"maxWeight": 10000000,
"maxWeightUnit": "Kilogramm",
"maxWidth": 10000000,
"maxWidthUnit": "Meter",
"maxLength": 10000000,
"maxLengthUnit": "Meter",
"maxHeight": 10000000,
"maxHeightUnit": "Meter",
"maxVolume": 10000000,
"maxVolumeUnit": "Kubikmeter",
"status": "",
"running": false,
"totalTime": 0,
"totalTimeHours": 0,
"totalTimeDays": 0,
"totalTimeWeeks": 0,
"totalTimeMonths": 0,
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T16:32:31.448Z",
"updatedAt": "2024-02-29T16:32:31.448Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://production-api.ayoune.app/machineutilizations/65e0b19f121b7d48fe159c35",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"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": "6a6198982f837abff564555c",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_MACHINEUTILIZATION",
"href": "https://api.ayoune.app/production/machineutilizations/65e0b19f121b7d48fe159c35/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_MACHINEUTILIZATION",
"href": "https://api.ayoune.app/production/machineutilizations/65e0b19f121b7d48fe159c35/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.19.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2462",
"reset": "1784784540",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 206.826007,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /machineutilizations |
Liste mit Filtern/Paginierung | production.machineutilizations.view |
| GET | /machineutilizations/:id |
Einzelner Datensatz | production.machineutilizations.view |
| POST | /machineutilizations |
Neuen Datensatz erstellen | production.machineutilizations.new |
| PUT | /machineutilizations |
Datensatz aktualisieren | production.machineutilizations.edit |
| DELETE | /machineutilizations/:id |
Datensatz löschen | production.machineutilizations.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.production.machineUtilizations.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.production.machineUtilizations.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.production.machineUtilizations.create({ name: 'Foo' });