← Marketing API
UCDs
Singular: UCD — Base-URL: https://marketing-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": {
"h1": {
"desktop": "",
"tablet": "",
"phone": ""
},
"h2": {
"desktop": "",
"tablet": "",
"phone": ""
},
"h3": {
"desktop": "",
"tablet": "",
"phone": ""
},
"h4": {
"desktop": "",
"tablet": "",
"phone": ""
},
"h5": {
"desktop": "",
"tablet": "",
"phone": ""
},
"h6": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_cta_btn1": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_cta_btn2": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_cta1": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_cta2": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_cta3": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_cta4": {
"desktop": "",
"tablet": "",
"phone": ""
},
"ayoune_main_content": {
"desktop": "",
"tablet": "",
"phone": ""
},
"_id": "65e0b14b121b7d48fe15943c",
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T16:31:07.860Z",
"updatedAt": "2024-02-29T16:31:07.860Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://marketing-api.ayoune.app/ucds/65e0b14b121b7d48fe15943c",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6a6194c4f78ad61f1990fe36",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_UCD",
"href": "https://api.ayoune.app/marketing/ucds/65e0b14b121b7d48fe15943c/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_UCD",
"href": "https://api.ayoune.app/marketing/ucds/65e0b14b121b7d48fe15943c/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.24.4",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "1758",
"reset": "1784783437",
"resetDate": "Thu Jul 23 2026"
},
"responseTime": 20.652129,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /ucds |
Liste mit Filtern/Paginierung | marketing.ucds.view |
| GET | /ucds/:id |
Einzelner Datensatz | marketing.ucds.view |
| POST | /ucds |
Neuen Datensatz erstellen | marketing.ucds.new |
| PUT | /ucds |
Datensatz aktualisieren | marketing.ucds.edit |
| DELETE | /ucds/:id |
Datensatz löschen | marketing.ucds.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.marketing.uCDs.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.marketing.uCDs.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.marketing.uCDs.create({ name: 'Foo' });