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

A response object.

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
}