Custom reports
Add Block
posthttps://d1iwal3igywepk.cloudfront.net/custom-reports/{id}/blocks
Adds one block to the end of a custom report. The request is checked against the report it names: an unknown param, a metric the report cannot rank or total, or a report the key may not read is refused before anything is saved. Returns the whole custom report.
AuthorizationBearer <token>
API key as Bearer token
In: header
Path Parameters
id*string
Request Body
application/json
Responses
The custom report, with the new block last
post
/custom-reports/{id}/blockscurl -X POST "https://d1iwal3igywepk.cloudfront.net/custom-reports/string/blocks" \ -H "Content-Type: application/json" \ -d '{ "chart": { "source": "report", "report": "channel-report", "title": "Revenue by channel", "viz": "line" } }'Example Request Body
json{ "chart": { "source": "report", "report": "channel-report", "title": "Revenue by channel", "viz": "line" }}Example Responses
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "title": "string", "description": "string", "source": "agent", "url": "string", "pinned": true, "sidebar_position": 0, "updated_at": "string", "filters": [ { "key": "date_range", "default": { "range": "last_30_days" } } ], "blocks": [ { "id": "b3280abc24d7", "kind": "string", "size": "small", "source": "agent", "layout": { "x": 0, "y": 0, "w": 0, "h": 0 }, "chart": { "source": "report", "report": "channel-report", "title": "Revenue by channel", "viz": "line", "metric": "total_cash_cents", "metric_x": "string", "columns": [ "string" ], "block": "devices", "params": { "range": "last_90_days", "order_by": "total_cash_cents", "limit": 10 } }, "filters": [ { "key": "date_range", "default": { "range": "last_30_days" } } ] } ]}application/json
