---
title: "Change who can see a live chart"
method: PATCH
path: "/dashboards/v3/live-charts/{dashboard_id}"
tags: ["Dashboards v3 · live charts"]
---

# Change who can see a live chart

`PATCH /dashboards/v3/live-charts/{dashboard_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/dashboards/v3/live-charts/{dashboard_id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

workspace: sign-in, no site may embed it; public: anyone with the link or embed; sites: only the listed sites may embed it.

## Path parameters

- `dashboard_id` integer, required

## Request body

- ChangeAudienceSpec: Who can see a live chart
  - `params` ChangeAudienceParams, required
    - `audience` 'workspace' | 'public' | 'sites', required
    - `allowed_origins` string[]

## Response `200`

A live chart

- LiveChartResponse
  - `dashboard_id` integer, required
  - `title` string, required
  - `token` string, required: The board's viewer token (/dashboard-v3/<token>)
  - `state` 'pending' | 'live' | 'failed' | 'broken', required
  - `audience` 'workspace' | 'public' | 'sites', required
  - `allowed_origins` string[], required
  - `view_id` integer, required
  - `view_name` string, nullable
  - `figure` object, nullable: The chart's figure, for Add to a dashboard
  - `data_updated_at` integer, nullable: When the chart's data last refreshed (epoch seconds)
  - `broken` LiveChartBroken
    - `reasons` string[], required
    - `since` string, required
  - `created_at` string, date-time, required
  - `embed_url` string, required
  - `share_url` string, required: The link tools unfurl (oEmbed discovery)
  - `embed_snippet` string, nullable: The iframe to paste; null for a workspace-only chart
  - `oembed` boolean, required: Whether a pasted link unfurls as the chart

## Other responses

- `400`: Bad request syntax or unsupported method
- `403`: Request forbidden -- authorization will not help

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/fe078afe239b?raw)
