API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

POST /v1/analytics/aggregate

POST/v1/analytics/aggregate

CodeMeta OS API endpoint.

Request Body

NameTypBeschreibung
definitionerforderlichobjectStructured builder definition that the server compiles into a whitelisted MongoDB aggregation pipeline. Never accept raw pipelines from clients.
previewboolean

Beispiel

curl -X POST https://api.codemeta-os.de/v1/analytics/aggregate \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "definition": null,
  "preview": false
}'
const result = await cm.analytics.post({
  "definition": null,
  "preview": false
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche