younifyd
Menu

Update a webhook subscription (PATCH)

Update a webhook subscription

PATCH/webhooks/subscriptions/{subscriptionId}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update a webhook subscription (PATCH) action (under Webhooks).
  3. Fill in the fields below, then reference the result from later steps as {{updateAWebhookSubscriptionPatch.response.data}}.

Request

Path parameters

subscriptionIdintegerrequired

Subscription ID

Request body

Enter the body as JSON in the step's Body field.

urlstring

The URL that will be called whenever the hook is triggered. Sensitive data will be obfuscated in responses.

filtersarray<object>
merchantReferenceKeysobject2 fields

Although the include and exclude lists are mutually exclusive, both can appear in a patch request when one is intended to cancel out the other.

json
{
  "url": "https://foo:bar@foobar.tld/notify",
  "filters": [
    {
      "merchantReferenceKeys": {
        "include": {
          "add": [
            "string"
          ],
          "remove": [
            "string"
          ]
        },
        "exclude": {
          "add": [
            "string"
          ],
          "remove": [
            "string"
          ]
        }
      }
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateAWebhookSubscriptionPatch.response.data.<field>}}.

idinteger

The unique webhook identifier.

eventstring

Name of the hook event.

versioninteger

The version of the hook.

urlstring

The URL that will be called whenever the hook is triggered. Sensitive data will be obfuscated in responses.

filtersarray<object>
merchantReferenceKeysobject2 fields

Must contain either 'include' or 'exclude', but not both.

json
{
  "event": "customer-created",
  "version": 1,
  "url": "https://foo:bar@foobar.tld/notifiy",
  "id": 1,
  "filters": [
    {
      "merchantReferenceKeys": {
        "include": [
          "string"
        ],
        "exclude": [
          "string"
        ]
      }
    }
  ]
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Update a webhook subscription (PATCH) — SCAYLE Admin — Documentation