← PIM API
ProductLists
Singular: ProductList — Base-URL: https://pim-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.
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /productlists |
Liste mit Filtern/Paginierung | pim.productlists.view |
| GET | /productlists/:id |
Einzelner Datensatz | pim.productlists.view |
| POST | /productlists |
Neuen Datensatz erstellen | pim.productlists.new |
| PUT | /productlists |
Datensatz aktualisieren | pim.productlists.edit |
| DELETE | /productlists/:id |
Datensatz löschen | pim.productlists.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.pim.productLists.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.pim.productLists.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.pim.productLists.create({ name: 'Foo' });