Get Aggregation CSV
documentedReturn aggregated data as CSV using a configuration object (measures/dimensions).
POST /api/organizations/{org_id}/aggregation/csvAggregationno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://watershedlrs.com/api/organizations/{{$org_id}}/aggregation/csv" \
-X POST \
-u "{{WATERSHEDLRS_API_KEY}}:{{WATERSHEDLRS_SECRET}}" \
-H "Content-Type: application/json" \
-H "Accept: text/csv" \
-d '{"filter": {"activityIds": {"ids": ["{{$activity_id}}"]}, "personIds": null, "groupIds": null, "dateFilter": {"dateType": "none", "trailingAmount": {{$trailing_days}}, "trailingType": "days", "fieldName": "timestamp"}, "activityTypes": null}, "dimensions": [{"type": "STATEMENT_PROPERTY", "statementProperty": "result.response", "caseSensitive": true}], "measures": [{"name": "Count", "aggregation": {"type": "COUNT"}, "valueProducer": {"type": "STATEMENT_PROPERTY", "statementProperty": "object.id"}}]}'