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
Publish changes of a template
POST Request
Endpoint URL https://veski.leikbreytir.is/api/v2/pass-template/{identifier}/publish
Purpose
Publish the changes of a template to all active passes at a specific point in time.
Required input parameters
- HTTP Authorization Header that contains your API key
- The publication date in the JSON body. Use the date of the timezone that is configured in your account settings in Gift to Wallet. Gift to Wallet will automatically convert the local time to server time.
Returned values
Example output:
{
"publicationDate": "2025-10-30 15:00"
}
Response:
If there were changes to publish:
{
"success": true,
"description": "Template version will be published to active passes on 2021-10-30 15:00",
"errors": [],
"data": [],
"statusCode": 201
}
If there are no changes that can be published:
{
"success": true,
"description": "There are no changes for this template that could be published. No update was scheduled.",
"errors": [],
"data": [],
"statusCode": 200
}