← Konfiguration API
TerminalRoles
Singular: TerminalRole — Base-URL: https://config-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": "6a30b01e1ab613e8ec61f8e5",
"key": "production",
"active": true,
"createdAt": "2026-06-16T02:08:30.735Z",
"defaultRoute": "/production",
"enabledModules": [
"production"
],
"icon": "precision_manufacturing",
"isDraft": true,
"isSeed": true,
"label": "Production",
"sortOrder": 10,
"updatedAt": "2026-06-16T02:30:26.084Z",
"shares": []
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/terminalroles/6a30b01e1ab613e8ec61f8e5",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "WorkCenters",
"title": "MODEL_WORKCENTER",
"href": "https://api.ayoune.app/production/workcenters",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "production.workcenters"
}
],
"debugId": "6ac85df3a5530da2364a872d",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_TERMINALROLE",
"href": "https://api.ayoune.app/config/terminalroles/6a30b01e1ab613e8ec61f8e5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_TERMINALROLE",
"href": "https://api.ayoune.app/config/terminalroles/6a30b01e1ab613e8ec61f8e5",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.170.1",
"core": "2026.368.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9489",
"reset": "1791518517",
"resetDate": "Fri Oct 09 2026"
},
"responseTime": 302.231681,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /terminalroles |
Liste mit Filtern/Paginierung | config.terminalroles.view |
| GET | /terminalroles/:id |
Einzelner Datensatz | config.terminalroles.view |
| POST | /terminalroles |
Neuen Datensatz erstellen | config.terminalroles.new |
| PUT | /terminalroles |
Datensatz aktualisieren | config.terminalroles.edit |
| DELETE | /terminalroles/:id |
Datensatz löschen | config.terminalroles.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.config.terminalRoles.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.config.terminalRoles.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.config.terminalRoles.create({ name: 'Foo' });