Zum Inhalt springen
aYOUne
← Marketing API

aYOUneAdvertisementGroups

Singular: aYOUneAdvertisementGroup — Base-URL: https://marketing-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

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": "6affc31b9a9a88706877dfe3",
    "name": "PURRING_AMARANTH_JANGO FETT",
    "regions": [],
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-11-20T03:48:43.137Z",
    "updatedAt": "2026-11-20T03:48:46.341Z",
    "modifiedBy": "6045f4d25704710012485569"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/ayouneadvertisementgroups/6affc31b9a9a88706877dfe3",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6affc31e9a9a88706877e07f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AYOUNEADVERTISEMENTGROUP",
        "href": "https://api.ayoune.app/marketing/ayouneadvertisementgroups/6affc31b9a9a88706877dfe3/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AYOUNEADVERTISEMENTGROUP",
        "href": "https://api.ayoune.app/marketing/ayouneadvertisementgroups/6affc31b9a9a88706877dfe3",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.38.0",
      "core": "2026.388.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8957",
      "reset": "1795149787",
      "resetDate": "Fri Nov 20 2026"
    },
    "responseTime": 196.098331,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /ayouneadvertisementgroups Liste mit Filtern/Paginierung marketing.ayouneadvertisementgroups.view
GET /ayouneadvertisementgroups/:id Einzelner Datensatz marketing.ayouneadvertisementgroups.view
POST /ayouneadvertisementgroups Neuen Datensatz erstellen marketing.ayouneadvertisementgroups.new
PUT /ayouneadvertisementgroups Datensatz aktualisieren marketing.ayouneadvertisementgroups.edit
DELETE /ayouneadvertisementgroups/:id Datensatz löschen marketing.ayouneadvertisementgroups.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.marketing.aYOUneAdvertisementGroups.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.marketing.aYOUneAdvertisementGroups.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.marketing.aYOUneAdvertisementGroups.create({ name: 'Foo' });

Weiterführend