Zum Inhalt springen
aYOUne
← CMS API

DownloadCategories

Singular: DownloadCategory — Base-URL: https://cms-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": "6ad82f8bcabeb5042ab44baf",
    "name": "DIRECT_AMARANTH_PLO KOON",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-21T03:20:43.463Z",
    "updatedAt": "2026-10-21T03:20:43.463Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/downloadcategories/6ad82f8bcabeb5042ab44baf",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ad82f8b0585b19623d2e07c",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DOWNLOADCATEGORY",
        "href": "https://api.ayoune.app/cms/downloadcategories/6ad82f8bcabeb5042ab44baf/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DOWNLOADCATEGORY",
        "href": "https://api.ayoune.app/cms/downloadcategories/6ad82f8bcabeb5042ab44baf",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.49.1",
      "core": "2026.387.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9653",
      "reset": "1792556376",
      "resetDate": "Wed Oct 21 2026"
    },
    "responseTime": 25.00357,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend