Custom reports
Move Block
posthttps://d1iwal3igywepk.cloudfront.net/custom-reports/{id}/blocks/{block_id}/move
Moves one block to another custom report of the same workspace (to_custom_report_id), keeping its id, title and request. It goes to the end of the target custom report unless you pass position (0 = first). Both custom reports change together: the block is never lost or duplicated. Returns both custom reports.
AuthorizationBearer <token>
API key as Bearer token
In: header
Path Parameters
id*string
block_id*string
Request Body
application/json
Responses
Both custom reports after the move
post
/custom-reports/{id}/blocks/{block_id}/movecurl -X POST "https://d1iwal3igywepk.cloudfront.net/custom-reports/string/blocks/string/move" \ -H "Content-Type: application/json" \ -d '{ "to_custom_report_id": "01bb0e67-a3c9-4bea-bbb7-b9ddccecf31f" }'Example Request Body
json{ "to_custom_report_id": "01bb0e67-a3c9-4bea-bbb7-b9ddccecf31f"}Example Responses
{ "from": { "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" } } ] } ] }, "to": { "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
