Zum Inhalt springen
aYOUne
← Konfiguration API

ConnectionTypes

Singular: ConnectionType — 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": "65ce158154a4cbfc2b470dbb",
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-15T13:45:37.138Z",
    "updatedAt": "2024-02-15T13:45:37.138Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/connectiontypes/65ce158154a4cbfc2b470dbb",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ac9b150cdeaf426c109b442",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_CONNECTIONTYPE",
        "href": "https://api.ayoune.app/config/connectiontypes/65ce158154a4cbfc2b470dbb/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_CONNECTIONTYPE",
        "href": "https://api.ayoune.app/config/connectiontypes/65ce158154a4cbfc2b470dbb",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9449",
      "reset": "1791604919",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 1695.858636,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend