To disable a restriction, don't include the restriction property in the request.
Note: dateRestriction must be a valid ISO 8601 date string, see the example below for a sample
https://api.passslot.com/v1/templates/:id/restrictions
PUT https://api.passslot.com/v1/templates/2/restrictions
{ "quantityRestriction":1000, "redemptionRestriction":100, "passwordProtection":"password", "dateRestriction":"2014-02-12T00:00:00Z", "sharingRestriction":true }
{ "quantityRestriction":1000, "redemptionRestriction":100, "passwordProtection":"password", "dateRestriction":"2014-02-12T11:13:39Z", "sharingRestriction":true }
HTTP Method | PUT |
API Version | 1 |
Requires Authentication? | Yes |
Request Format | JSON |
Request Object | Restrictions |
Response Format | JSON |
Response Object | Restrictions |