aYOUne
← CMS API

WebsiteImports

Singular: WebsiteImport — Base-URL: https://cms-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

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": "6a94fd28968ca36917643500",
    "isDraft": true,
    "createdBy": "6045f4d25704710012485569",
    "createdAt": "2026-08-31T04:03:52.530Z",
    "updatedAt": "2026-08-31T04:03:52.530Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://cms-api.ayoune.app/websiteimports/6a94fd28968ca36917643500",
        "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": "6a94fd29968ca36917643537",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_WEBSITEIMPORT",
        "href": "https://api.ayoune.app/cms/websiteimports/6a94fd28968ca36917643500/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_WEBSITEIMPORT",
        "href": "https://api.ayoune.app/cms/websiteimports/6a94fd28968ca36917643500",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.46.0",
      "core": "2026.326.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2109",
      "reset": "1788152042",
      "resetDate": "Mon Aug 31 2026"
    },
    "responseTime": 115.725753,
    "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