---
title: "Create workbook from template"
method: POST
path: "/v2/templates/save_workbook"
tags: ["Templates"]
---

# Create workbook from template

`POST /v2/templates/save_workbook`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/templates/save_workbook`
- Auth: HTTP bearer

Create a workbook by saving it from a template.

  ### Usage notes
  - Retrieve the **templateId** by calling the [/v2/templates](https://help.sigmacomputing.com/reference/list-templates) endpoint.
  - Retrieve the **folderId** by calling the [/v2/files](https://help.sigmacomputing.com/reference/list-files) endpoint and reviewing the `id` field in the response for files with a `type` of `folder`. To use the "My Documents" folder as the destination folder, call the [/v2/members/{memberId}](https://help.sigmacomputing.com/reference/get-member) endpoint and use the `homeFolderId` included in the response.
  - If you leave the name or description options blank, the workbook created inherits the values of the template.

## Request body

- object
  - `templateId` string, required
  - `folderId` string, required
  - `name` string
  - `description` string
  - `updateAutomatically` boolean

## Response `200`

The response body.

- TemplatesSaveWorkbookFromTemplateResponse200
  - `workbookId` string, required

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
