# csv_stats — analyze a CSV file
curl -X POST https://api.revolution-network.fr/api/enterprise/v1/jobs \
-H "x-api-key: YOUR_KEY" \
-d '{
"type": "csv_stats",
"params": {
"url": "https://example.com/sales.csv",
"operations": ["describe","correlation","outliers"],
"group_by": "category"
}
}'
# Response:
{
"rows": 45820,
"stats": { "amount": {"mean":1247.3,"median":892.0,"std":834.2} },
"by_category": { "Electronics": {"count":12300,"total":18420000} }
}
# data_processing — ETL pipeline
curl -X POST https://api.revolution-network.fr/api/enterprise/v1/jobs \
-H "x-api-key: YOUR_KEY" \
-d '{
"type": "data_processing",
"params": {
"url": "https://example.com/transactions.csv",
"pipeline": [
{"op":"filter","where":{"amount":{"gt":100},"status":"completed"}},
{"op":"transform","add_fields":{"month":"date.slice(0,7)"}},
{"op":"aggregate","group_by":"month","agg":{"revenue":"sum(amount)"}},
{"op":"sort","by":"month","order":"desc"}
],
"output_format": "csv"
}
}'