Update event handler
update-event-handlerPatch an event handler's match criteria, template, priority, or active state. Pass approve=true to approve an AI-suggested handler; approve=false to revoke approval. Only supplied fields are updated. Through an AI client, approve=true is refused, and a change to what the handler matches or books makes it a suggestion again, out of matching until a person approves it.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"is_active": false,
"event_handler_id": "evh_01HVF8T0M2YTAY3BBNRH0V0"
},
"name": "update-event-handler"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name. Omit to leave unchanged. | |
| approve | No | Approval shortcut: True stamps approved_by/approved_at to the current user; False clears both. Approving an AI-suggested handler also needs `expected_updated_at`. | |
| priority | No | ||
| is_active | No | Toggle activation. False removes the handler from match-time consideration without deleting it. | |
| description | No | New description. | |
| match_source | No | ||
| event_category | No | ||
| metadata_patch | No | Deep-merged into the existing handler.metadata. Pass `{}` to leave metadata unchanged. | |
| event_handler_id | Yes | The handler to update. | |
| match_agent_type | No | ||
| expected_updated_at | No | The handler's `updated_at` as shown when it was reviewed. Required with `approve=true` on an AI-suggested handler, so the approval covers exactly that version; a mismatch is refused with 409. | |
| match_resource_type | No | ||
| transaction_template | No | Replacement template. Whole-template replace — no partial patch. Omit to leave unchanged. | |
| match_metadata_expression | No |