← PIM API
PimSelections
Singular: PimSelection — Base-URL: https://pim-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": "6ac71f73d603a189f1ab8c71",
"name": "SALTY_AZURE_IG-88",
"automate": false,
"interval": 1,
"intervalUnit": "hours",
"createdBy": "6045f4d25704710012485569",
"last_run": "2026-10-08T04:43:31.825Z",
"shares": [],
"createdAt": "2026-10-08T04:43:31.825Z",
"updatedAt": "2026-10-08T04:43:31.825Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://pim-api.ayoune.app/pimselections/6ac71f73d603a189f1ab8c71",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [],
"debugId": "6ac71f74d603a189f1ab8c90",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_PIMSELECTION",
"href": "https://api.ayoune.app/pim/pimselections/6ac71f73d603a189f1ab8c71/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_PIMSELECTION",
"href": "https://api.ayoune.app/pim/pimselections/6ac71f73d603a189f1ab8c71",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.33.0",
"core": "2026.368.0"
},
"rateLimit": {
"limit": "10000",
"remaining": "9972",
"reset": "1791438200",
"resetDate": "Thu Oct 08 2026"
},
"responseTime": 286.412033,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /pimselections |
Liste mit Filtern/Paginierung | pim.selections.view |
| GET | /pimselections/:id |
Einzelner Datensatz | pim.selections.view |
| POST | /pimselections |
Neuen Datensatz erstellen | pim.selections.new |
| PUT | /pimselections |
Datensatz aktualisieren | pim.selections.edit |
| DELETE | /pimselections/:id |
Datensatz löschen | pim.selections.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.pim.pimSelections.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.pim.pimSelections.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.pim.pimSelections.create({ name: 'Foo' });