← Konfiguration API
Calendars
Singular: Calendar — 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": {
"syncSettings": {
"google": {
"watch": false
},
"outlook": {
"watch": false
}
},
"workTimes": {
"mo": [],
"di": [],
"mi": [],
"do": [],
"fr": [],
"sa": [],
"so": []
},
"type": "aYOUne",
"onlineBooking": false,
"externalBooking": false,
"depositRequired": false,
"_id": "65e0afe6121b7d48fe155f8e",
"color": "#38a5f8",
"secondaryColor": "#1e557f",
"resource": false,
"theme": "blue",
"shared": false,
"onlinebooking": false,
"externalbooking": false,
"autoApprove": false,
"sync": true,
"slot": 60,
"worktimes": {
"mo": [],
"di": [],
"mi": [],
"do": [],
"fr": [],
"sa": [],
"so": []
},
"createdBy": "6045f4d25704710012485569",
"services": [],
"createdAt": "2024-02-29T16:25:10.256Z",
"updatedAt": "2024-02-29T16:25:10.256Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/calendars/65e0afe6121b7d48fe155f8e",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Teams",
"title": "MODEL_TEAM",
"href": "https://api.ayoune.app/config/teams",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.teams"
},
{
"rel": "Credentials",
"title": "MODEL_CREDENTIAL",
"href": "https://api.ayoune.app/config/credentials",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.credentials"
},
{
"rel": "WebReceivers",
"title": "MODEL_WEBRECEIVER",
"href": "https://api.ayoune.app/config/webreceivers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.webreceivers"
},
{
"rel": "WebReceivers",
"title": "MODEL_WEBRECEIVER",
"href": "https://api.ayoune.app/config/webreceivers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.webreceivers"
}
],
"debugId": "6a62dcee30b7d778029e60e8",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_CALENDAR",
"href": "https://api.ayoune.app/config/calendars/65e0afe6121b7d48fe155f8e/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_CALENDAR",
"href": "https://api.ayoune.app/config/calendars/65e0afe6121b7d48fe155f8e/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.94.0",
"core": "2026.258.0"
},
"rateLimit": {
"limit": "2500",
"remaining": "2278",
"reset": "1784865648",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 195.672989,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /calendars |
Liste mit Filtern/Paginierung | config.calendars.view |
| GET | /calendars/:id |
Einzelner Datensatz | config.calendars.view |
| POST | /calendars |
Neuen Datensatz erstellen | config.calendars.new |
| PUT | /calendars |
Datensatz aktualisieren | config.calendars.edit |
| DELETE | /calendars/:id |
Datensatz löschen | config.calendars.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.config.calendars.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.config.calendars.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.config.calendars.create({ name: 'Foo' });