← Konfiguration API
NotificationPreferences
Singular: NotificationPreference — 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": "6ab73cb83e4ac8da656efda5",
"level": "*",
"entityType": "*",
"user": "6045f4d25704710012485569",
"createdAt": "2026-09-26T03:32:08.907Z",
"shares": [],
"updatedAt": "2026-10-07T03:20:37.576Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://config-api.ayoune.app/notificationpreferences/6ab73cb83e4ac8da656efda5",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6ac85db5a5530da2364a7f3e",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_NOTIFICATIONPREFERENCE",
"href": "https://api.ayoune.app/config/notificationpreferences/6ab73cb83e4ac8da656efda5/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_NOTIFICATIONPREFERENCE",
"href": "https://api.ayoune.app/config/notificationpreferences/6ab73cb83e4ac8da656efda5",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.170.1",
"core": "2026.368.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9586",
"reset": "1791518517",
"resetDate": "Fri Oct 09 2026"
},
"responseTime": 401.095149,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /notificationpreferences |
Liste mit Filtern/Paginierung | config.notificationpreferences.view |
| GET | /notificationpreferences/:id |
Einzelner Datensatz | config.notificationpreferences.view |
| POST | /notificationpreferences |
Neuen Datensatz erstellen | config.notificationpreferences.new |
| PUT | /notificationpreferences |
Datensatz aktualisieren | config.notificationpreferences.edit |
| DELETE | /notificationpreferences/:id |
Datensatz löschen | config.notificationpreferences.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.config.notificationPreferences.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.config.notificationPreferences.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.config.notificationPreferences.create({ name: 'Foo' });