← Konfiguration API
Teams
Singular: Team — Base-URL: https://config-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": "65e0b07c121b7d48fe158150",
"_location": [],
"typ": "sales",
"createdBy": "6045f4d25704710012485569",
"members": [],
"createdAt": "2024-02-29T16:27:40.155Z",
"updatedAt": "2024-02-29T16:27:40.155Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/teams/65e0b07c121b7d48fe158150",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "CostCenters",
"title": "MODEL_COSTCENTER",
"href": "https://api.ayoune.app/accounting/costcenters",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "accounting.costcenters"
},
{
"rel": "Departments",
"title": "MODEL_DEPARTMENT",
"href": "https://api.ayoune.app/config/departments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.departments"
}
],
"debugId": "6a62deeaf27d6098834b185d",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_TEAM",
"href": "https://api.ayoune.app/config/teams/65e0b07c121b7d48fe158150/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_TEAM",
"href": "https://api.ayoune.app/config/teams/65e0b07c121b7d48fe158150/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.95.0",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "403",
"reset": "1784865648",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 104.047114,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /teams |
Liste mit Filtern/Paginierung | config.teams.view |
| GET | /teams/:id |
Einzelner Datensatz | config.teams.view |
| POST | /teams |
Neuen Datensatz erstellen | config.teams.new |
| PUT | /teams |
Datensatz aktualisieren | config.teams.edit |
| DELETE | /teams/:id |
Datensatz löschen | config.teams.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.config.teams.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.config.teams.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.config.teams.create({ name: 'Foo' });