Zum Inhalt springen
aYOUne
← Konfiguration API

SubClients

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

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": "65e0b075121b7d48fe15807e",
    "company": "",
    "street": "",
    "zip": "",
    "city": "",
    "country": "Deutschland",
    "state": "",
    "phone": "",
    "fax": "",
    "cell": "",
    "website": "",
    "note": "",
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:27:33.447Z",
    "updatedAt": "2024-02-29T16:27:33.447Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/subclients/65e0b075121b7d48fe15807e",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ac9b26e2493408cc113aefc",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_SUBCLIENT",
        "href": "https://api.ayoune.app/config/subclients/65e0b075121b7d48fe15807e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_SUBCLIENT",
        "href": "https://api.ayoune.app/config/subclients/65e0b075121b7d48fe15807e",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9179",
      "reset": "1791604919",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 80.946029,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend