Menu
Update a webhook subscription (PATCH)
Update a webhook subscription
PATCH
/webhooks/subscriptions/{subscriptionId}Use it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Update a webhook subscription (PATCH) action (under Webhooks).
- Fill in the fields below, then reference the result from later steps as
{{updateAWebhookSubscriptionPatch.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"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>}}.
{
"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.
Was this page helpful?