Zum Inhalt springen
aYOUne
← CMS API

WebsiteImports

Singular: WebsiteImport — 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": "6ad82f90cabeb5042ab44e37",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-21T03:20:48.936Z",
    "updatedAt": "2026-10-21T03:20:48.936Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/websiteimports/6ad82f90cabeb5042ab44e37",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Websites",
        "title": "MODEL_WEBSITE",
        "href": "https://api.ayoune.app/cms/websites",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "cms.websites"
      }
    ],
    "debugId": "6ad82f910585b19623d2e25a",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_WEBSITEIMPORT",
        "href": "https://api.ayoune.app/cms/websiteimports/6ad82f90cabeb5042ab44e37/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_WEBSITEIMPORT",
        "href": "https://api.ayoune.app/cms/websiteimports/6ad82f90cabeb5042ab44e37",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.49.1",
      "core": "2026.387.1"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9594",
      "reset": "1792556376",
      "resetDate": "Wed Oct 21 2026"
    },
    "responseTime": 34.654409,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend