Custom reports
Update Block
patchhttps://d1iwal3igywepk.cloudfront.net/custom-reports/{id}/blocks/{block_id}
Changes a block's title, viz, size, metric, columns or request. Fields you leave out keep their value; params, when given, replaces the request params entirely. The block keeps its id. Widgets built in the web app can be removed or moved but not edited here.
AuthorizationBearer <token>
API key as Bearer token
In: header
Path Parameters
id*string
block_id*string
Request Body
application/json
Responses
The custom report
patch
/custom-reports/{id}/blocks/{block_id}curl -X PATCH "https://d1iwal3igywepk.cloudfront.net/custom-reports/string/blocks/string" \ -H "Content-Type: application/json" \ -d '{}'Example Request Body
json{}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
