Zum Inhalt springen
aYOUne
← CRM API

DataCollectionEntries

Singular: DataCollectionEntry — Base-URL: https://crm-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": "6ac9b3b4faa25e94b7fd61ba",
    "note": "CAUTIOUS_EMERALD_SHAAK TI",
    "createdBy": "6045f4d25704710012485569",
    "values": [],
    "shares": [],
    "createdAt": "2026-10-10T03:40:36.629Z",
    "updatedAt": "2026-10-10T03:40:36.629Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://crm-api.ayoune.app/datacollectionentries/6ac9b3b4faa25e94b7fd61ba",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "Consumers",
        "title": "MODEL_CONSUMER",
        "href": "https://api.ayoune.app/crm/consumers",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "crm.consumers"
      }
    ],
    "debugId": "6ac9b3b5faa25e94b7fd6202",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DATACOLLECTIONENTRY",
        "href": "https://api.ayoune.app/crm/datacollectionentries/6ac9b3b4faa25e94b7fd61ba/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DATACOLLECTIONENTRY",
        "href": "https://api.ayoune.app/crm/datacollectionentries/6ac9b3b4faa25e94b7fd61ba",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.79.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "9641",
      "reset": "1791607056",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 201.553697,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

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

SDK

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

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

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

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

Weiterführend