aYOUne
← CMS API

Articles

Singular: Article — Base-URL: https://cms-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": "65e0afc4121b7d48fe1554b8",
    "categories": [],
    "enclosures": [],
    "_interestChannels": [],
    "_contentCategories": [],
    "rePublish": false,
    "brands": [],
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2024-02-29T16:24:36.357Z",
    "updatedAt": "2024-02-29T16:24:36.357Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/articles/65e0afc4121b7d48fe1554b8",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "NewsSources",
        "title": "MODEL_NEWSSOURCE",
        "href": "https://api.ayoune.app/cms/newssources",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.newssources"
      },
      {
        "rel": "Articles",
        "title": "MODEL_ARTICLE",
        "href": "https://api.ayoune.app/cms/articles",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.articles"
      }
    ],
    "debugId": "6a62dc6a01c81db07e1daba9",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_ARTICLE",
        "href": "https://api.ayoune.app/cms/articles/65e0afc4121b7d48fe1554b8/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_ARTICLE",
        "href": "https://api.ayoune.app/cms/articles/65e0afc4121b7d48fe1554b8/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.25.5",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2491",
      "reset": "1784867449",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 23.054688,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend