---
title: "Take a draft live"
method: POST
path: "/dashboards/v3/templates/admin/{slug}/publish"
tags: ["Dashboard v3 Template Admin"]
---

# Take a draft live

`POST /dashboards/v3/templates/admin/{slug}/publish`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/dashboards/v3/templates/admin/{slug}/publish`
- 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`

Re-checks the fit, publishes the source dashboard, turns on the public link and renders the preview image — then, and only then, marks the row live. Published-and-public buys a reachable og-card route, not a picture: until the card exists the gallery falls back to a wireframe indistinguishable from a template nobody finished. Refused, with nothing published, if the template would be excluded from the gallery on its own data.

## Path parameters

- `slug` string, required

## Response `200`

The affected template row, and what else the change did

- AdminRowResponse
  - `template` object, required
  - `notes` string[]

## Other responses

- `201`: Document created, URL follows
- `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)
