← Marketing API
Awards
Singular: Award — 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": "6ac9bbafd942c8cd7c84bd03",
"name": "CONSERVATIVE_AMETHYST_SHAAK TI",
"createdBy": "6045f4d25704710012485569",
"shares": [],
"createdAt": "2026-10-10T04:14:39.963Z",
"updatedAt": "2026-10-10T04:14:40.664Z",
"modifiedBy": "6045f4d25704710012485569"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://marketing-api.ayoune.app/awards/6ac9bbafd942c8cd7c84bd03",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "Images",
"title": "MODEL_IMAGE",
"href": "https://api.ayoune.app/cms/images",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.images"
}
],
"debugId": "6ac9bbb1d942c8cd7c84bd8e",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_AWARD",
"href": "https://api.ayoune.app/marketing/awards/6ac9bbafd942c8cd7c84bd03/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_AWARD",
"href": "https://api.ayoune.app/marketing/awards/6ac9bbafd942c8cd7c84bd03",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.38.0",
"core": "2026.368.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "8823",
"reset": "1791608900",
"resetDate": "Sat Oct 10 2026"
},
"responseTime": 97.086197,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /awards |
Liste mit Filtern/Paginierung | marketing.awards.view |
| GET | /awards/:id |
Einzelner Datensatz | marketing.awards.view |
| POST | /awards |
Neuen Datensatz erstellen | marketing.awards.new |
| PUT | /awards |
Datensatz aktualisieren | marketing.awards.edit |
| DELETE | /awards/:id |
Datensatz löschen | marketing.awards.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.marketing.awards.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.marketing.awards.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.marketing.awards.create({ name: 'Foo' });