---
title: "Update Pass Template Distribution Restrictions"
method: PUT
path: "/v2/templates/{templateId}/restrictions"
tags: ["Pass Templates > Distribution Restrictions"]
---

# Update Pass Template Distribution Restrictions

`PUT /v2/templates/{templateId}/restrictions`

## Request

- Base URL: `https://api.loyalty.dog`
- URL: `https://api.loyalty.dog/v2/templates/{templateId}/restrictions`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/loyalty/apis/loyaltydog/docs/v2/templates/:templateId/restrictions/put.ts> (a function with typed inputs; its response is checked against the schema)

### Update Pass Template Distribution Restrictions

Update the distribution restrictions of the pass template.

**Parameters:**
- `restrictions` (TemplateRestrictions): The updated distribution restrictions data.
- `template` (Template): The pass template.

**Returns:**
- `dict`: The updated distribution restrictions of the pass template.

## Path parameters

- `templateId` union, required
  - string
  - string

## Headers

- `authorization` string, nullable

## Request body

- TemplateRestrictions
  - `quantityRestriction` integer, nullable
  - `redemptionRestriction` integer, nullable
  - `passwordProtection` string, nullable
  - `sharingRestriction` boolean, nullable
  - `dateRestriction` string, date-time, nullable
  - `returningUserRestriction` 'user_decides' | 'show_existing' | 'create_new'
  - `passSharingMethod` 'pass' | 'url' | 'disabled'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/loyalty/apis/loyaltydog.md) - [All operations](https://skmtc.dev/loyalty/apis/loyaltydog/llms.txt) - [OpenAPI document](https://skmtc.dev/loyalty/apis/loyaltydog/revisions/5803242b0551?raw)
