aYOUne
← Konfiguration API

ProductGroups

Singular: ProductGroup — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD

play_circle 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": "65e0b04f121b7d48fe157bdd",
    "active": true,
    "_division": [],
    "name": "-",
    "backgroundColor": "#ffffff",
    "textColor": "#000000",
    "team": "-",
    "datev_sub_id": "",
    "ext_id": "",
    "INTID": "",
    "pos": false,
    "noticeActive": false,
    "notice": "",
    "notice_en": "",
    "short_description": "",
    "short_description_en": "",
    "long_description": "",
    "long_description_en": "",
    "image_url": "",
    "additional_image_url": "",
    "advancedNbr": false,
    "attributes": [],
    "createdBy": "6045f4d25704710012485569",
    "images": [],
    "shops": [],
    "channels": [],
    "articleNumberParts": [],
    "createdAt": "2024-02-29T16:26:55.505Z",
    "updatedAt": "2024-02-29T16:26:55.505Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/productgroups/65e0b04f121b7d48fe157bdd",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "ETIMs",
        "title": "MODEL_ETIM",
        "href": "https://api.ayoune.app/config/etims",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "config.etims"
      }
    ],
    "debugId": "6a62de3cf27d6098834af145",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_PRODUCTGROUP",
        "href": "https://api.ayoune.app/config/productgroups/65e0b04f121b7d48fe157bdd/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_PRODUCTGROUP",
        "href": "https://api.ayoune.app/config/productgroups/65e0b04f121b7d48fe157bdd/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.95.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "911",
      "reset": "1784865648",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 96.282814,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend