aYOUne
← PIM API

PimSelections

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

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": "6a701befb16ecc2765a32cf3",
    "name": "DISTANT_TAN_JANGO FETT",
    "automate": false,
    "interval": 1,
    "intervalUnit": "hours",
    "createdBy": "6045f4d25704710012485569",
    "last_run": "2026-08-03T04:41:19.369Z",
    "createdAt": "2026-08-03T04:41:19.369Z",
    "updatedAt": "2026-08-03T04:41:19.369Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://pim-api.ayoune.app/pimselections/6a701befb16ecc2765a32cf3",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a82900aa69cc700ab63c2e5",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_PIMSELECTION",
        "href": "https://api.ayoune.app/pim/pimselections/6a701befb16ecc2765a32cf3/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_PIMSELECTION",
        "href": "https://api.ayoune.app/pim/pimselections/6a701befb16ecc2765a32cf3/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.30.0",
      "core": "2026.287.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2470",
      "reset": "1786945039",
      "resetDate": "Mon Aug 17 2026"
    },
    "responseTime": 87.361202,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
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' });

Weiterführend