Skip to main content
PATCH
Update a pass

Authorizations

Authorization
string
header
required

Passlet access token (plt_*) sent as Authorization: Bearer <token> or X-API-Key. Authorized scopes are listed per operation under x-required-scopes.

Headers

If-Match
string

The pass revision you last read, as an entity tag ("4"). If the pass has changed since, nothing is written and the request fails with 412 (PRECONDITION_FAILED).

Path Parameters

id
string<uuid>
required

Pass identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Query Parameters

dryRun
boolean

Validate the change and return the pass as it would be, without saving it or updating wallets.

Body

application/json
label
string

New pass holder display name

Required string length: 1 - 255
variables
object

Variables to change, merged over the stored values: supplied keys replace their values, omitted keys keep theirs, and null removes a value so the variable falls back to its template default.

templateVersion

Template version to render the pass with: a published version number of the pass’s template, or latest for its newest published version. Passes only move forward; the version the pass already renders changes nothing.

Required range: 0 < x <= 9007199254740991

Response

OK

id
string<uuid>
required

Pass identifier

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
externalPassId
string
required

External system pass ID

Required string length: 1 - 255
label
string
required

Pass holder display name

Required string length: 1 - 255
status
enum<string>
required
Available options:
QUEUED,
ISSUING,
ISSUED,
VOID,
FAILED,
EXPIRED
Example:

"QUEUED"

version
integer
required
deprecated

Deprecated: use revision. Internal change counter of the pass.

Required range: x <= 9007199254740991
templateVersionId
string<uuid> | null
required

Template version the pass currently renders with. Pinned at issue time; only changes via an explicit template upgrade to a newer published version of the same template.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
templateId
string<uuid> | null
required

Template identifier this pass was issued from

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
projectId
string<uuid> | null
required

Project the pass lives in

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
variables
object
required

Stored pass variables

redemption
object | null
required

Resolved redemption policy enforced at scan time

expiresAt
string<date-time> | null
required

Pass expiration timestamp

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
createdAt
string<date-time>
required

ISO 8601 timestamp

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
updatedAt
string<date-time>
required

ISO 8601 timestamp

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
revision
integer
required

Revision of the pass, as shown in the console. Increases with every change to its label, variables, or template version. Send it in If-Match to update the pass only if it is unchanged.

Required range: x <= 9007199254740991
templateVersion
integer | null
required

Version number of the template version the pass renders

Required range: 0 < x <= 9007199254740991
latestTemplateVersion
integer | null
required

Newest published version number of the pass’s template. Greater than templateVersion when an upgrade is available; null when the template was deleted.

Required range: 0 < x <= 9007199254740991

Hosted add-to-wallet links