Passes
Update a pass
Changes a pass’s field values, links, external ID or metadata. Wallet changes are pushed to every wallet that has it.
PATCH
Send only what changes. See Update passes for how notifications and delivery work.
string
required
The pass ID.
string
required
A unique value for this update.
object
New values keyed by field key. Each value is a string, a number, or
null to clear an optional field. Fields you leave out keep their values.object
New Featured Action links, keyed by action key. Each link must start with
https://, or tel: for a call action. null or an empty string removes the pass’s own link so the template’s link shows again. A link the template requires for every pass can’t be removed, and an action whose link is the same on every pass can’t be set. Actions you leave out keep their links. Only with notificationMode: "silent".object
New Lock Screen lists:
locations and dates, in the same format as in Issue a pass. A list you send replaces the pass’s own, null returns it to the template’s list, and a list you leave out stays as it is. Only with notificationMode: "silent".integer
Stamp cards only: the new stamp count, a whole number from 0 to the card’s total. To add or remove stamps without knowing the count, use Add stamps.
number
Points cards only: the new balance, with up to 2 decimal places. A value outside the template’s limits is moved to the nearest one. To add or subtract points without knowing the balance, use Add points.
string
default:"silent"
silent updates the pass quietly. notify also shows a notification on the holder’s lock screen. Only applies when field values, stamps or points change.string | null
A new external ID, up to 255 characters.
null or an empty string clears it.object
Keys to set or remove. It’s merged into the pass’s metadata: a string sets that key,
null or an empty string removes it, and keys you leave out stay as they are. The result can have at most 50 keys.externalId and metadata never reach the wallet, so changing them sends nothing to the holder, and you can still change them after the pass is voided.
Response
object | null
A record of the change, with its delivery to each wallet. It’s
null when nothing visible in the wallet changed, for example when you only changed metadata. Check its progress later with Get a pass update.