---
title: "Update Template Sharing Settings"
method: PUT
path: "/public/v1/templates/{template_id}/shares"
tags: ["Template Settings"]
---

# Update Template Sharing Settings

`PUT /public/v1/templates/{template_id}/shares`

## Request

- Base URL: `https://api.pandadoc.com`
- URL: `https://api.pandadoc.com/public/v1/templates/{template_id}/shares`
- Auth: one of:
  - API key in header `Authorization`
  - OAuth 2
    - Authorization code: `https://app.pandadoc.com/oauth2/authorize`
    - Token URL: `https://api.pandadoc.com/oauth2/access_token`
- TypeScript: <https://skmtc.dev/pandadoc/apis/pandadoc-public-api/docs/public/v1/templates/:template_id/shares/put.ts> (a function with typed inputs; its response is checked against the schema)

Replaces the full list of Workspaces this Template is shared with.
The caller must be a member of every Workspace being newly shared by this
call. Unsharing a Workspace only requires permission to edit the Template.

## Path parameters

- `template_id` string, required

## Request body

- TemplateSharesRequest: The desired set of Workspaces a Template should be shared with.
  - `workspace_ids` string[], required: Unique identifiers of the Workspaces the Template should be shared with, representing the complete desired end-state rather than a delta. Duplicate ids are deduplicated, and the server replaces the prior shares with this set atomically.

## Response `200`

Successfully replaced the Template's Shares.

- TemplateSharesResponse: The Workspaces a Template is currently shared with.
  - `workspace_ids` string[], required: Unique identifiers of the Workspaces the Template is currently shared with, reflecting the server state at the time of the response.

## Other responses

- `400`: Bad Request
- `401`: Authentication error
- `403`: Permission error
- `404`: Not found
- `429`: Too Many Requests

## Changes

- **2026-11-03** `b9a306b1a421`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/changes/public/v1/templates/:template_id/shares/put.md)

---

[API](https://skmtc.dev/pandadoc/apis/pandadoc-public-api.md) - [All operations](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pandadoc/apis/pandadoc-public-api/revisions/b9a306b1a421?raw)
