Publish Viz
POST/v1/viz/:viz_id/publish
Publish: merge draft → main, tag, trigger build.
V32 — pre-flight checks the iframe bundle health on the viz row. If
bundle_state.status == FAILED (or STALE) and force=false, the
helper raises HTTPException 409 with a structured payload so the
publish dialog can show the bundle error and offer "publish anyway".
Ticket 1 — callers MUST pass view_mode in the request body to set
visibility at publish time. If view_mode is "public" the route
checks the account-level allow_for_public_viz flag and rejects with
403 if public sharing is disabled for this account.
Request
Responses
- 200
- 404
- 422
Successful Response
Not found
Validation Error