Fields in this object support dynamic values, fields that do not support dynamic values are noted.
Support for dynamic values is as follows:
- Each field can be a string value or contain a single dynamic value.
- To make a field dynamic, it must be set in the following format
{{ entity.attribute }}.
- A default value can be passed using the following syntax
{{ entity.attribute | "default value" }}.
- A Pass Template Revision has support for attributes from two entities, Pass and User. These can be accessed with the entity name
pass and user. EG: To have a field show the value of a Pass attribute named memberId, the field's value would be set to {{ pass.memberId }}.
Image fields (logoUri, iconUri, coverImageUri, alternateCoverImageUri, and posterArtwork) take a public http or https URL, or a data: URL, for a PNG, JPEG, GIF, WebP, SVG, or AVIF image. An image at a URL can be up to 5 MB. The whole request, including every data: URL, must stay within the 512 KB request size limit.
Badge stores a copy of each image when you create the revision, and responses return the URL of that copy. Changing the image at the original URL does not update the pass.
For a dynamic image field, Badge copies the default value.