---
title: "Apply a template to a target dataset"
method: POST
path: "/dashboards/v3/templates/apply"
tags: ["Dashboard v3"]
---

# Apply a template to a target dataset

`POST /dashboards/v3/templates/apply`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/dashboards/v3/templates/apply`
- 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`

Create a new v3 dashboard by applying a source dashboard's Look/Format/Layout onto a target dataset with every field re-resolved. Returns a job_id and creates the dashboard asynchronously — mirroring /v3/generate, because this is also a create flow (the applied canvas rides the same append+bake path, so the editorial tiles re-resolve against the target data via the render service). Auth: read on the source dashboard + the target dataview ACL (same bar /v3/generate uses to create on a dataview).

## Query parameters

- `project_id` integer, nullable

## Request body

- ApplyTemplateSpec: Apply a template to a target dataset
  - `params` ApplyTemplateParams, required
    - `source_dashboard_id` integer, required
    - `target_dataview_id` integer, required
    - `mapping` object, nullable: The confirmed mapping (auto-resolved when omitted)
    - `overrides` object: Per-role user overrides: source field → chosen target (or null to drop)

## Response `201`

Document created, URL follows

- ObjectJobSchema
  - `status_code` integer, nullable
  - `job_id` integer, nullable: Created job id
  - `failure_reason` string, nullable: Failure reason if status is failure

## Other responses

- `202`: Successfully Submitted
- `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/9d8804f81a10?raw)
