aYOUne
← Konfiguration API

Manufacturers

Singular: Manufacturer — 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": "65e0b037121b7d48fe1578aa",
    "company": "",
    "title": "",
    "salutation": "",
    "first_name": "",
    "last_name": "",
    "street": "",
    "zip": "",
    "city": "",
    "country": "Deutschland",
    "state": "",
    "phone": "",
    "fax": "",
    "cell": "",
    "info": "",
    "website": "",
    "status": "Neu",
    "source": "",
    "note": "",
    "jahresumsatz": "",
    "branche": "",
    "createdBy": "6045f4d25704710012485569",
    "dob": "2024-02-29T16:26:31.984Z",
    "createdAt": "2024-02-29T16:26:31.986Z",
    "updatedAt": "2024-02-29T16:26:31.986Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/manufacturers/65e0b037121b7d48fe1578aa",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6a62dde8f27d6098834ad83f",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_MANUFACTURER",
        "href": "https://api.ayoune.app/config/manufacturers/65e0b037121b7d48fe1578aa/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_MANUFACTURER",
        "href": "https://api.ayoune.app/config/manufacturers/65e0b037121b7d48fe1578aa/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.95.0",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "1243",
      "reset": "1784865648",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 176.005089,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend