dashboard.publish
Publish a dashboard to the gallery
Details
- Endpoint
- POST /v1/dashboard/:dashboard/publish
- Credits
- Free
- Rate class
- Light. Counts against your light requests per second.
Lists a draft in the gallery. Needs a title of 4 or more characters (not Untitled), 2 charts whose queries returned data, and an account at least 24 hours old or a dashboard already in the gallery. Up to 5 publishes a day. Owner only; a private dashboard becomes public.
Parameters
| Name | Type | Description |
|---|---|---|
| dashboardrequired | string | Slug or numeric id. |
Request
Send your key in the x-api-key header, or leave it out to use the keyless tier.
curl
curl -X POST "https://api.tide.ad/v1/dashboard/my-dashboard/publish" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{}'TypeScript
const res = await fetch("https://api.tide.ad/v1/dashboard/my-dashboard/publish", {
method: "POST",
headers: {
"x-api-key": process.env.TIDE_API_KEY!,
"content-type": "application/json",
},
body: JSON.stringify({}),
});
const data = await res.json();Response
No example response is available for this method yet.