← Marketing API
ShopPersonalizationRules
Singular: ShopPersonalizationRule — Base-URL: https://marketing-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": "6ac9bbbbd942c8cd7c84c027",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-10-10T04:14:51.759Z",
"updatedAt": "2026-10-10T04:14:51.759Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://marketing-api.ayoune.app/shoppersonalizationrules/6ac9bbbbd942c8cd7c84c027",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Websites",
"title": "MODEL_WEBSITE",
"href": "https://api.ayoune.app/cms/websites",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.websites"
},
{
"rel": "MarketingCampaigns",
"title": "MODEL_MARKETINGCAMPAIGN",
"href": "https://api.ayoune.app/marketing/marketingcampaigns",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.marketingcampaigns"
},
{
"rel": "Experiments",
"title": "MODEL_EXPERIMENT",
"href": "https://api.ayoune.app/marketing/experiments",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.experiments"
}
],
"debugId": "6ac9bbbcd942c8cd7c84c05b",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_SHOPPERSONALIZATIONRULE",
"href": "https://api.ayoune.app/marketing/shoppersonalizationrules/6ac9bbbbd942c8cd7c84c027/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_SHOPPERSONALIZATIONRULE",
"href": "https://api.ayoune.app/marketing/shoppersonalizationrules/6ac9bbbbd942c8cd7c84c027",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.38.0",
"core": "2026.368.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "8767",
"reset": "1791608900",
"resetDate": "Sat Oct 10 2026"
},
"responseTime": 185.043684,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /shoppersonalizationrules |
Liste mit Filtern/Paginierung | marketing.shoppersonalizationrules.view |
| GET | /shoppersonalizationrules/:id |
Einzelner Datensatz | marketing.shoppersonalizationrules.view |
| POST | /shoppersonalizationrules |
Neuen Datensatz erstellen | marketing.shoppersonalizationrules.new |
| PUT | /shoppersonalizationrules |
Datensatz aktualisieren | marketing.shoppersonalizationrules.edit |
| DELETE | /shoppersonalizationrules/:id |
Datensatz löschen | marketing.shoppersonalizationrules.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.marketing.shopPersonalizationRules.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.marketing.shopPersonalizationRules.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.marketing.shopPersonalizationRules.create({ name: 'Foo' });