---
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`

### 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.net/loyalty/apis/loyaltydog.md) · [All operations](https://skmtc.net/loyalty/apis/loyaltydog/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loyalty/loyaltydog/versions/42b7b22af2b6/schema)
