Skip to main content
PATCH
/
api
/
v1
/
pass-templates
/
{id}
Update Pass Template
curl --request PATCH \
  --url https://api.passentry.com/api/v1/pass-templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "passTemplate": {
    "name": "PassEntry Coffee Shop",
    "colors": {
      "background": "#EEEEEE"
    },
    "images": {
      "watermark": {
        "color": "dark",
        "position": "topLeft"
      }
    },
    "appLinking": {
      "apple": {
        "appStoreUrl": []
      }
    },
    "beacons": []
  }
}'
{
  "data": {
    "id": "19cb334f9696e64e10e7759f0",
    "type": "passTemplate",
    "attributes": {
      "name": "PassEntry Supermarket",
      "templateType": "generic",
      "defaultLanguage": "en",
      "centralTitle": "PassEntry Supermarket",
      "notificationHeader": "PassEntry Supermarket",
      "colors": {
        "background": "#EFEFEF",
        "label": "#FF8477",
        "text": "#29323A"
      },
      "images": {
        "banner": "https://example.com/banner.png",
        "logo": "https://example.com/logo.png",
        "icon": "https://example.com/icon.png",
        "watermark": {
          "color": "light",
          "position": "topLeft"
        }
      },
      "fields": {
        "header": {
          "one": {
            "id": "membership_tier",
            "label": "Membership Tier",
            "defaultValue": "Gold"
          }
        },
        "central": {
          "one": {
            "id": "membership_tier",
            "label": "Membership Tier",
            "defaultValue": "Gold"
          }
        },
        "details": {
          "one": {
            "id": "membership_tier",
            "label": "Membership Tier",
            "defaultValue": "Gold"
          }
        },
        "back": {
          "one": {
            "id": "membership_tier",
            "label": "Membership Tier",
            "defaultValue": "Gold"
          }
        }
      }
    }
  }
}
This endpoint is currently in open beta and available to all users – let us know if you encounter any issues or have feedback.Image sizes have been changed, you may need to re-upload your images. Please review our design guidelines for more information.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Pass Template UUID

Body

application/json

Pass Template object

passTemplate
object
required

Response

Successful

  • Pass template
  • Processing pass template
id
string

Unique identifier for the pass template

Example:

"19cb334f9696e64e10e7759f0"

type
string
Example:

"passTemplate"

attributes
object