POST /v1/analytics/aggregate
POST/v1/analytics/aggregate
CodeMeta OS API endpoint.
Request Body
| Name | Typ | Beschreibung |
|---|
definitionerforderlich | object | Structured builder definition that the server compiles into a whitelisted MongoDB aggregation pipeline. Never accept raw pipelines from clients. |
preview | boolean | |
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 |