dashboard.unpublish
Take a dashboard out of the gallery
Details
- Endpoint
- POST /v1/dashboard/:dashboard/unpublish
- Credits
- Free
- Rate class
- Light. Counts against your light requests per second.
Turns a published dashboard back into a draft. It stays open by its link. Owner only.
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/unpublish" \
-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/unpublish", {
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.