Update webhook

veryfront__update_webhook

Requires project.agents.write.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug.
webhook_idstringYesThe webhook id. 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. Format: uuid.
namestringNoNew webhook name, 1-120 characters. Minimum length: 1. Maximum length: 120.
targetobjectNoTarget invoked by a webhook definition.
prompt_templatestringNoPrompt template for run targets. Not supported for event-only webhooks. Minimum length: 1. Maximum length: 20000.
event_filterobject or nullNoOptional incoming event filter. Missing, null, or empty conditions accept every event.
statusstringNodraft, enabled or disabled. Values: "draft", "enabled", "disabled".

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__update_webhook",
    "arguments": {
      "webhook_id": "00000000-0000-4000-8000-000000000000"
    }
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
idstringYesThe webhook id. Pass it as webhook_id to the other webhook operations. Format: uuid.
project_idstringYesProject identifier associated with the record. Format: uuid.
namestringYesHuman-readable name for the record.
sourcestringYesThe source associated with this record. Value: "webhook".
targetobjectYesStructured target details associated with this record.
prompt_templatestring or nullYesThe prompt template associated with this record.
event_filterobject or nullYesOptional incoming event filter. Missing, null, or empty conditions accept every event.
statusstringYesLifecycle status for the record. Values: "draft", "enabled", "disabled".
runtime_target_kindstringYesThe runtime target kind associated with this record. Values: "main_branch", "environment", "preview_branch".
runtime_target_environment_idstring or nullYesThe runtime target environment id associated with this record.
runtime_target_branch_idstring or nullYesThe runtime target branch id associated with this record.
definition_sourcestringYesThe definition source associated with this record. Values: "manual", "source".
source_trigger_idstring or nullYesThe source trigger id associated with this record.
source_pathstring or nullYesThe source path associated with this record.
source_hashstring or nullYesThe source hash associated with this record.
ingress_idstringYesThe public id in webhook_url that external senders post to.
webhook_urlstringYesThe webhook url associated with this record.
created_by_user_idstringYesThe created by user id associated with this record. Format: uuid.
enabled_atstring or nullYesThe enabled at associated with this record.
disabled_atstring or nullYesThe disabled at associated with this record.
disabled_reasonstring or nullYesThe disabled reason associated with this record.
created_atstringYesCreation timestamp in ISO 8601 format.
updated_atstringYesLast update timestamp in ISO 8601 format.

Full schemas

json
{
  "type": "object",
  "properties": {
    "project_reference": {
      "type": "string",
      "description": "Project ID or slug."
    },
    "webhook_id": {
      "type": "string",
      "format": "uuid",
      "description": "The webhook id. 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."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "New webhook name, 1-120 characters."
    },
    "target": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "agent",
            "task",
            "workflow",
            "event"
          ],
          "description": "Target kind invoked or stored by the webhook."
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Target identifier: agent id, task target, workflow id, or event for store-only webhooks."
        },
        "conversation_mode": {
          "type": "string",
          "enum": [
            "create_new",
            "existing",
            "none"
          ],
          "description": "Conversation behaviour for an agent target. Defaults to none. Use create_new for an agent that delegates with invoke_agent - a run with no conversation cannot be paused for delegation. Agent targets run headlessly by default; create_new or existing creates or appends a conversation message. Agent targets with conversation mode create_new or existing also require project.conversations.write."
        },
        "conversation_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Conversation identifier associated with the record."
            },
            {
              "type": "null",
              "description": "Conversation identifier that scopes the request."
            }
          ],
          "description": "Existing conversation to continue. Only allowed when conversation_mode is existing, and required in that case."
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "additionalProperties": false,
      "description": "Target invoked by a webhook definition."
    },
    "prompt_template": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000,
      "description": "Prompt template for run targets. Not supported for event-only webhooks."
    },
    "event_filter": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ],
              "description": "Whether all or any filter conditions must match."
            },
            "conditions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "description": "Dot path in the incoming payload, for example action or pull_request.state."
                  },
                  "operator": {
                    "type": "string",
                    "enum": [
                      "equals",
                      "not_equals",
                      "in",
                      "exists",
                      "contains"
                    ],
                    "description": "Comparison operator."
                  },
                  "value": {
                    "description": "Comparison value for operators that require one."
                  }
                },
                "required": [
                  "path",
                  "operator"
                ],
                "additionalProperties": false,
                "description": "One condition item associated with this record."
              },
              "maxItems": 50,
              "description": "Filter conditions applied before webhook work is created."
            }
          },
          "required": [
            "mode",
            "conditions"
          ],
          "additionalProperties": false,
          "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."
        },
        {
          "type": "null",
          "description": "Provide the event filter."
        }
      ],
      "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "enabled",
        "disabled"
      ],
      "description": "draft, enabled or disabled."
    }
  },
  "required": [
    "webhook_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the update_webhook tool."
}
json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The webhook id. Pass it as webhook_id to the other webhook operations."
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "description": "Project identifier associated with the record."
    },
    "name": {
      "type": "string",
      "description": "Human-readable name for the record."
    },
    "source": {
      "type": "string",
      "const": "webhook",
      "description": "The source associated with this record."
    },
    "target": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "agent",
            "task",
            "workflow",
            "event"
          ],
          "description": "Target kind invoked or stored by the webhook."
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "description": "Target identifier: agent id, task target, workflow id, or event for store-only webhooks."
        },
        "conversation_mode": {
          "type": "string",
          "enum": [
            "create_new",
            "existing",
            "none"
          ],
          "description": "Conversation behaviour for an agent target. Defaults to none. Use create_new for an agent that delegates with invoke_agent - a run with no conversation cannot be paused for delegation. Agent targets run headlessly by default; create_new or existing creates or appends a conversation message. Agent targets with conversation mode create_new or existing also require project.conversations.write."
        },
        "conversation_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Conversation identifier associated with the record."
            },
            {
              "type": "null",
              "description": "Conversation identifier associated with this result."
            }
          ],
          "description": "Existing conversation to continue. Only allowed when conversation_mode is existing, and required in that case."
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "additionalProperties": false,
      "description": "Structured target details associated with this record."
    },
    "prompt_template": {
      "type": [
        "string",
        "null"
      ],
      "description": "The prompt template associated with this record."
    },
    "event_filter": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "all",
                "any"
              ],
              "description": "Whether all or any filter conditions must match."
            },
            "conditions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255,
                    "description": "Dot path in the incoming payload, for example action or pull_request.state."
                  },
                  "operator": {
                    "type": "string",
                    "enum": [
                      "equals",
                      "not_equals",
                      "in",
                      "exists",
                      "contains"
                    ],
                    "description": "Comparison operator."
                  },
                  "value": {
                    "description": "Comparison value for operators that require one."
                  }
                },
                "required": [
                  "path",
                  "operator"
                ],
                "additionalProperties": false,
                "description": "One condition item associated with this record."
              },
              "maxItems": 50,
              "description": "Filter conditions applied before webhook work is created."
            }
          },
          "required": [
            "mode",
            "conditions"
          ],
          "additionalProperties": false,
          "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."
        },
        {
          "type": "null",
          "description": "The event filter returned by the tool."
        }
      ],
      "description": "Optional incoming event filter. Missing, null, or empty conditions accept every event."
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "enabled",
        "disabled"
      ],
      "description": "Lifecycle status for the record."
    },
    "runtime_target_kind": {
      "type": "string",
      "enum": [
        "main_branch",
        "environment",
        "preview_branch"
      ],
      "description": "The runtime target kind associated with this record."
    },
    "runtime_target_environment_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "The runtime target environment id associated with this record."
        },
        {
          "type": "null",
          "description": "The runtime target environment id returned by the tool."
        }
      ],
      "description": "The runtime target environment id associated with this record."
    },
    "runtime_target_branch_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid",
          "description": "The runtime target branch id associated with this record."
        },
        {
          "type": "null",
          "description": "The runtime target branch id returned by the tool."
        }
      ],
      "description": "The runtime target branch id associated with this record."
    },
    "definition_source": {
      "type": "string",
      "enum": [
        "manual",
        "source"
      ],
      "description": "The definition source associated with this record."
    },
    "source_trigger_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The source trigger id associated with this record."
    },
    "source_path": {
      "type": [
        "string",
        "null"
      ],
      "description": "The source path associated with this record."
    },
    "source_hash": {
      "type": [
        "string",
        "null"
      ],
      "description": "The source hash associated with this record."
    },
    "ingress_id": {
      "type": "string",
      "description": "The public id in webhook_url that external senders post to."
    },
    "webhook_url": {
      "type": "string",
      "description": "The webhook url associated with this record."
    },
    "created_by_user_id": {
      "type": "string",
      "format": "uuid",
      "description": "The created by user id associated with this record."
    },
    "enabled_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "The enabled at associated with this record."
    },
    "disabled_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "The disabled at associated with this record."
    },
    "disabled_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "The disabled reason associated with this record."
    },
    "created_at": {
      "type": "string",
      "description": "Creation timestamp in ISO 8601 format."
    },
    "updated_at": {
      "type": "string",
      "description": "Last update timestamp in ISO 8601 format."
    }
  },
  "required": [
    "id",
    "project_id",
    "name",
    "source",
    "target",
    "prompt_template",
    "event_filter",
    "status",
    "runtime_target_kind",
    "runtime_target_environment_id",
    "runtime_target_branch_id",
    "definition_source",
    "source_trigger_id",
    "source_path",
    "source_hash",
    "ingress_id",
    "webhook_url",
    "created_by_user_id",
    "enabled_at",
    "disabled_at",
    "disabled_reason",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "description": "The updated webhook.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}