Mutation
mutation UpdateWebhook($id: ID!, $input: UpdateWebhookInput!) {
updateWebhook(id: $id, input: $input) {
webhook {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}
}Variables
{
"id": "id",
"input": {
"endpoint": "string",
"filter": "string",
"name": "string"
}
}Response
{
"data": {
"updateWebhook": {
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}
}Mutations
updateWebhook
Replaces the name, endpoint and filter of a webhook. A new endpoint cancels pending deliveries and sends the webhook back to PENDING_VERIFICATION; verify it again. Fails with a top-level NotFoundError or ValidationError.
MUTATION
updateWebhook(id: ID!, input: UpdateWebhookInput!): UpdateWebhookPayload!Arguments
id
ID!
required
Global id of the webhook: base64 of Webhook:<id>, where <id> is Webhook.id.
input
required
Returns
webhook
Mutation
mutation UpdateWebhook($id: ID!, $input: UpdateWebhookInput!) {
updateWebhook(id: $id, input: $input) {
webhook {
createdAt
destinationType
endpoint
filter
filterDialectVersion
id
}
}
}Variables
{
"id": "id",
"input": {
"endpoint": "string",
"filter": "string",
"name": "string"
}
}Response
{
"data": {
"updateWebhook": {
"webhook": {
"createdAt": "value",
"destinationType": "WEBHOOK",
"endpoint": "string",
"filter": "string",
"filterDialectVersion": 1,
"id": "value"
}
}
}
}Was this page helpful?