PATCH
/
wallet-pass
/
{id}
Update Pass details
curl --request PATCH \
  --url https://api.ubpass.co/v1/wallet-pass/{id} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "passName": "My Pass",
  "passMetadata": {
    "description": "<string>",
    "organizationName": "<string>",
    "backgroundColor": "<string>",
    "displayTextColor": "<string>",
    "topField": {
      "key": "<string>",
      "label": "<string>",
      "value": "<string>",
      "changeMessage": "<string>"
    },
    "secondaryFields": [
      {
        "key": "<string>",
        "label": "<string>",
        "value": "<string>",
        "changeMessage": "<string>"
      }
    ],
    "backFields": [
      {
        "key": "<string>",
        "label": "<string>",
        "value": [
          {
            "text": "<string>",
            "link": "<string>",
            "slug": "<string>",
            "shortLinkValue": "<string>",
            "shortLinkId": "<string>",
            "utmSource": "<string>"
          }
        ],
        "changeMessage": "<string>"
      }
    ],
    "qrUrl": "<string>",
    "qrText": "<string>"
  },
  "notificationHeader": "<string>"
}'
{
  "passName": "My Pass",
  "passMetadata": {
    "description": "<string>",
    "organizationName": "<string>",
    "backgroundColor": "<string>",
    "displayTextColor": "<string>",
    "topField": {
      "key": "<string>",
      "label": "<string>",
      "value": "<string>",
      "changeMessage": "<string>"
    },
    "secondaryFields": [
      {
        "key": "<string>",
        "label": "<string>",
        "value": "<string>",
        "changeMessage": "<string>"
      }
    ],
    "backFields": [
      {
        "key": "<string>",
        "label": "<string>",
        "value": [
          {
            "text": "<string>",
            "link": "<string>",
            "slug": "<string>",
            "shortLinkValue": "<string>",
            "shortLinkId": "<string>",
            "utmSource": "<string>"
          }
        ],
        "changeMessage": "<string>"
      }
    ],
    "qrUrl": "<string>",
    "qrText": "<string>"
  },
  "notificationHeader": "<string>"
}

Authorizations

api-key
string
header
required

Path Parameters

id
string
required

Pass id

Body

application/json

Request body for updating a Pass

The body is of type object.

Response

200
application/json

Pass has been updated successfully

The response is of type object.