---
title: "Save a template from a workbook"
method: POST
path: "/v2/workbooks/{workbookId}/saveTemplate"
tags: ["Workbooks"]
---

# Save a template from a workbook

`POST /v2/workbooks/{workbookId}/saveTemplate`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/workbooks/{workbookId}/saveTemplate`
- Auth: HTTP bearer

Create a workbook template from an existing workbook.

### Usage notes
- Retrieve the **workbookId** by calling the [/v2/workbooks](https://help.sigmacomputing.com/reference/list-workbooks) endpoint.
- The template owner defaults to the user associated with the API credentials. You can specify an owner in the request body with the `ownerId`. Retrieve the user ID to use as the ownerID by calling the [/v2/members](https://help.sigmacomputing.com/reference/list-members) endpoint and using the `memberId` included in the response.

## Path parameters

- `workbookId` string, required

## Request body

- object
  - `name` string: Name of the template to create.
  - `ownerId` string
  - `tag` string

## Response `200`

The response body.

- WorkbooksSaveTemplateFromWorkbookResponse200
  - `templateId` 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)
