Create a report
create_reportocmgr reports createPOST /v1/reportsWRITE
Save a validated SELECT and optional Vega-Lite chart over the report rows. At most six reports can be pinned to Home.
Parameters
namestringup to 160 charsREQUIRED
descriptionstring | nulldefault null
sqlstringup to 32000 charsREQUIRED
Read-only SELECT over the views from describe_analytics. Bind positional parameters with $1, $2, …; params keys are "1", "2", ….
paramsobjectdefault {}
Values for positional SQL parameters; use $1, $2, … in sql and keys "1", "2", … in params. Values are bound, never interpolated.
chartobject | nulldefault null
pinnedbooleandefault false
CLI flags
--description <text>
--params <json>
JSON or @file
--chart <json>
Vega-Lite JSON, @file or null
--pin
--unpin
--sql <sql>REQUIRED
SQL or @file