Developer Documentation (API)
- Authentication
- PHP Package
- V2 Endpoints
- Pass Templates
- Get a list of templates
- Describe the structure of a pass template
- Create a new template
- Update a template
- Patch a template
- Publish changes of a template
- Get information about fields of a pass-template only
- Schedule a Push Notification
- List scheduled notifications of a template
- Delete a scheduled Push Notification
- Copy a Pass Template
- Delete a Pass Template
- Create an iFrame Integration for a Template
- Create an URL Integration for a Template
- Passes
- REST Hooks
- Validating passes
- Deprecated endpoints
Enable download of a pass
POST Request
Endpoint URL https://veski.leikbreytir.is/api/pass/{pass-uid}/enabledownload
Purpose
If you have enabled the option on pass templates that prevents the download if a pass is already active, you can enable the download of the pass temporarily, even if the given pass is active already.
Required input parameters
- HTTP Authorization Header that contains your API key
- UID of the pass you want to enable
- enableDownloadUntil (optional) – a date and time until the download should be possible. If you don’t specify that parameter, the download will be enabled for ten minutes.
Returned values
Status 204 if the pass has been found and the download is enabled again.
Example output:
{
"enableDownloadUntil": "2019-05-20 10:09"
}