Update webhook

updateWebhook(input: UpdateWebhookInput!): WebhookDefinition!

Requires project.agents.write.

Arguments

ArgumentTypeRequired
inputUpdateWebhookInput!Yes

Input fields

input

UpdateWebhookInput

FieldTypeRequiredDescription
projectReferenceStringNo
idID!YesWebhook definition id. A missing webhook fails with RESOURCE_NOT_FOUND. Updates require project.agents.write. When target is omitted, a stored conversation-backed target (create_new or existing conversation mode) still requires project.conversations.write.
nameStringNo
targetWebhookTargetInputNo
promptTemplateStringNo
eventFilterWebhookEventFilterInputNo
statusWebhookStatusNo

Response

Returns WebhookDefinition!. Open the type for its fields and nested types.

FieldType
idID!
projectIdID!
nameString!
sourceString!
targetWebhookTarget!
promptTemplateString
eventFilterWebhookEventFilter
statusWebhookStatus!

All fields of WebhookDefinition.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation UpdateWebhook($input: UpdateWebhookInput!) {
  updateWebhook(input: $input) {
    id
    projectId
    name
    status
    createdAt
  }
}
json
{
  "input": {
    "id": "00000000-0000-4000-8000-000000000001",
    "projectReference": "example-project"
  }
}