Upsert a dashboard card (CLI metrics sync)
Runtime API - Dashboard Cards
Upsert a dashboard card (CLI metrics sync)
Creates or updates a dashboard card by (agent_id, event_name). Idempotent — safe to call on every deploy.
POST
Upsert a dashboard card (CLI metrics sync)
Body
application/json
Agent UUID
Card visualization type. All 8 types supported: number, rate, line, bar, pie, table, funnel, gauge.
Available options:
number, rate, line, bar, pie, table, funnel, gauge Card-type-specific config. Polymorphic shape — see @runflow/shared dashboard-cards types for the per-type required fields.
Optional dashboard tab (UUID).
Optional grid position (x, y, w, h). Stored in config.
Optional caller-supplied key.
Response
Card upserted successfully.