Update a subscription webhook
Use the updateWebhook
mutation to update a subscription webhook for a particular installed application.
The following input fields are provided:
id
- Required. The identifier of the webhook.
url
- Optional. The URL that the webhook will send events to.
events
- Optional. List of events that the subscription webhook will listen to.
disabled
- Optional. Boolean dictating whether or not the webhook should be marked as disabled.
Example Mutation
mutation updateWebhook($input: UpdateWebhookInput!) {
updateWebhook(input: $input) {
webhook {
id,
url,
events,
disabledAt,
}
}
}
Example Input Variable
{
"input" : {
"id": "MDc6V2ViaG9vazky",
"url": "https://webhook.site/55728eeb-dc12-4dde-8b17-beea2d322e04",
"events":["phone.subscribed", "phone.unsubscribed"],
"disabled": false
}
}