Zum Inhalt springen
aYOUne
← Konfiguration API

SupportPortals

Singular: SupportPortal — 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": "65e0b078121b7d48fe1580db",
    "maxResolutionTime": 72,
    "visible": true,
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:27:36.473Z",
    "updatedAt": "2024-02-29T16:27:36.473Z",
    "shares": []
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/supportportals/65e0b078121b7d48fe1580db",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6acb0461639a90c479270c54",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_SUPPORTPORTAL",
        "href": "https://api.ayoune.app/config/supportportals/65e0b078121b7d48fe1580db/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_SUPPORTPORTAL",
        "href": "https://api.ayoune.app/config/supportportals/65e0b078121b7d48fe1580db",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8742",
      "reset": "1791691321",
      "resetDate": "Sun Oct 11 2026"
    },
    "responseTime": 584.371933,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend