v2

latestOpenAPI 3.1.02026-08-01244220427.0 KB
Pass Templates > Distribution Restrictions

Update Pass Template Distribution 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.
put/v2/templates/{templateId}/restrictions

Path parameters

string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593

Headers

authorizationstring nullable

Request body

quantityRestrictioninteger nullable
redemptionRestrictioninteger nullable
passwordProtectionstring nullable
sharingRestrictionboolean nullable
dateRestrictionstring date-time nullable
returningUserRestriction'user_decides' | 'show_existing' | 'create_new'
passSharingMethod'pass' | 'url' | 'disabled'

Response

Successful Response

{"stackTrail":"paths:/v2/templates/{templateId}/restrictions:put:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}