Skip to main content

Update pass (full update)

PUT 

/pass-srv/pass/:passId

Performs a full update of a pass. All fields must be provided as this replaces the entire pass object.

Important constraints:

  • passId and productInstanceId cannot be changed
  • passUserHolder.sub, pass.productId, passUser.givenName, and passUser.familyName are required
  • validTo must be after validFrom if both are provided
  • The combination of productId and productInstanceId must be unique (error code: PASS1016 if duplicate)
  • The sub in passUserHolder must exist in the Cidaas user system (error code: PASS1005 if not found)

Error Codes:

  • PASS1005: No user with provided sub exists
  • PASS1016: Pass with productId + productInstanceId already exists
  • PASS1002: Missing required payload fields

Request

Responses

Pass updated successfully