aYOUne
← CRM API

DataCollectionEntries

Singular: DataCollectionEntry — Base-URL: https://crm-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": "6a618eb4f23360035fa1cfd9",
    "createdBy": "6045f4d25704710012485569",
    "values": [],
    "createdAt": "2026-07-23T03:47:00.545Z",
    "updatedAt": "2026-07-23T03:47:00.545Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://crm-api.ayoune.app/datacollectionentries/6a618eb4f23360035fa1cfd9",
        "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": "6a62df93d98fe96440cc99da",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_DATACOLLECTIONENTRY",
        "href": "https://api.ayoune.app/crm/datacollectionentries/6a618eb4f23360035fa1cfd9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_DATACOLLECTIONENTRY",
        "href": "https://api.ayoune.app/crm/datacollectionentries/6a618eb4f23360035fa1cfd9/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.46.1",
      "core": "2026.258.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2184",
      "reset": "1784868196",
      "resetDate": "Fri Jul 24 2026"
    },
    "responseTime": 17.00578,
    "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