enableWebhookTarget
Mutation
Used to enable or disable a webhook using a true / false boolean.
enableWebhookTarget(input: WebhookTargetEnableRequestInput): WebhookTargetEnableResponse
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
input | WebhookTargetEnableRequestInput | Provide the ID of the webhook you want to edit, and whether it's enabled (true) or disabled (false) |
Returns
Example
Request
mutation EnableWebhookTarget($input: WebhookTargetEnableRequestInput) {
enableWebhookTarget(input: $input) {
currentEnabled
id
previousEnabled
}
}