← Konfiguration API
BuildingSpaceStates
Singular: BuildingSpaceState — Base-URL: https://config-api.ayoune.app — Zugriff: read-only — 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": "6acd2d3d69829e3b9200ea5d",
"_buildingSpace": "6acd2d23cf30733281f1793d",
"_companyLocation": "65ce1445a4982a6f10eb0ab4",
"booking": {
"busy": true,
"until": "2026-10-12T21:26:16.000Z",
"_calendarEntry": "6acd2d528503a4dac543a003",
"measuredAt": "2026-10-12T19:02:56.904Z"
},
"createdAt": "2026-10-12T18:55:57.305Z",
"fusedAt": "2026-10-12T19:02:56.904Z",
"kind": "room",
"shares": [],
"updatedAt": "2026-10-12T19:02:57.327Z",
"lastOccupiedAt": "2026-10-12T19:02:56.904Z",
"occupancy": {
"value": {
"occupied": true
},
"source": "booking",
"measuredAt": "2026-10-12T19:02:56.904Z",
"confidence": 0.5
}
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/buildingspacestates/6acd2d3d69829e3b9200ea5d",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "BuildingSpaces",
"title": "MODEL_BUILDINGSPACE",
"href": "https://api.ayoune.app/config/buildingspaces/6acd2d23cf30733281f1793d",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.buildingspaces"
},
{
"rel": "CompanyLocations",
"title": "MODEL_COMPANYLOCATION",
"href": "https://api.ayoune.app/config/companylocations/65ce1445a4982a6f10eb0ab4",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.companylocations"
}
],
"relations": [
{
"rel": "BuildingSpaces",
"title": "MODEL_BUILDINGSPACE",
"href": "https://api.ayoune.app/config/buildingspaces",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.buildingspaces"
},
{
"rel": "CompanyLocations",
"title": "MODEL_COMPANYLOCATION",
"href": "https://api.ayoune.app/config/companylocations",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.companylocations"
}
],
"debugId": "6b0653ca92a1964c090dd31e",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_BUILDINGSPACESTATE",
"href": "https://api.ayoune.app/config/buildingspacestates/6acd2d3d69829e3b9200ea5d/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_BUILDINGSPACESTATE",
"href": "https://api.ayoune.app/config/buildingspacestates/6acd2d3d69829e3b9200ea5d",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.170.1",
"core": "2026.393.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "6452",
"reset": "1795579355",
"resetDate": "Wed Nov 25 2026"
},
"responseTime": 19.243872,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /buildingspacestates |
Liste mit Filtern/Paginierung | config.buildingspacestates.view |
| GET | /buildingspacestates/:id |
Einzelner Datensatz via ID | config.buildingspacestates.view |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.config.buildingSpaceStates.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.config.buildingSpaceStates.findById('OBJECT_ID').exec();