aYOUne
← Konfiguration API

Attributes

Singular: Attribute — 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": {
    "tableSettings": {
      "headers": []
    },
    "listsettings": {
      "conditions": []
    },
    "_id": "65e0afdf121b7d48fe155d70",
    "models": [],
    "showAttributesOnTyp": [],
    "requiredCalculationAttributes": [],
    "createdBy": "6045f4d25704710012485569",
    "allocations": [],
    "values": [],
    "createdAt": "2024-02-29T16:25:03.678Z",
    "updatedAt": "2024-02-29T16:25:03.678Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://pim-api.ayoune.app/attributes/65e0afdf121b7d48fe155d70",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a619825ef646eb812608188",
    "errors": [],
    "actions": [],
    "version": {
      "host": "2026.15.0",
      "core": "2026.257.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2447",
      "reset": "1784784423",
      "resetDate": "Thu Jul 23 2026"
    },
    "responseTime": 19.68927,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend