← Affiliate API
ImageBannerTemplates
Singular: ImageBannerTemplate — Base-URL: https://affiliate-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": {
"imageFileName": "",
"imageFileUrl": "",
"targetUrl": "-",
"_id": "65e07d7711cb6213d99d05d2",
"type": "1",
"width": 1,
"height": 1,
"def": false,
"cat": "Standard",
"file": "default.png",
"product": "-",
"target": "-",
"locale": "de_DE",
"createdBy": "6045f4d25704710012485569",
"createdAt": "2024-02-29T12:49:59.105Z",
"updatedAt": "2024-02-29T12:49:59.105Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://affiliate-api.ayoune.app/imagebannertemplates/65e07d7711cb6213d99d05d2",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "ImageBannerCats",
"title": "MODEL_IMAGEBANNERCAT",
"href": "https://api.ayoune.app/affiliate/imagebannercats",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "affiliate.imagebannercats"
},
{
"rel": "Products",
"title": "MODEL_PRODUCT",
"href": "https://api.ayoune.app/pim/products",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pim.products"
},
{
"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": "6a62dbef138b05b510db23ef",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_IMAGEBANNERTEMPLATE",
"href": "https://api.ayoune.app/affiliate/imagebannertemplates/65e07d7711cb6213d99d05d2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_IMAGEBANNERTEMPLATE",
"href": "https://api.ayoune.app/affiliate/imagebannertemplates/65e07d7711cb6213d99d05d2/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.5.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2415",
"reset": "1784867314",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 248.213149,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /imagebannertemplates |
Liste mit Filtern/Paginierung | affiliate.imagebannertemplates.view |
| GET | /imagebannertemplates/:id |
Einzelner Datensatz | affiliate.imagebannertemplates.view |
| POST | /imagebannertemplates |
Neuen Datensatz erstellen | affiliate.imagebannertemplates.new |
| PUT | /imagebannertemplates |
Datensatz aktualisieren | affiliate.imagebannertemplates.edit |
| DELETE | /imagebannertemplates/:id |
Datensatz löschen | affiliate.imagebannertemplates.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.affiliate.imageBannerTemplates.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.affiliate.imageBannerTemplates.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.affiliate.imageBannerTemplates.create({ name: 'Foo' });