update_hook
Change a hook's verify, accept or keep_headers. Its URL stays the same, as do its counts and the delivery ids it has seen, so the sender needs no change. Fields left out stay as they are; accept: null keeps everything again, verify: null stops checking signatures. Passing verify replaces the secret, for when you rotate it at the sender.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "update_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The hook's name. | |
| accept | No | ||
| verify | No | ||
| keep_headers | No | More request headers to keep on each event, e.g. ["X-Gitlab-Event"]. content-type and user-agent are always kept, and verify.scheme github adds X-GitHub-Event and X-GitHub-Delivery. Credentials (Authorization, Cookie, X-Api-Key, X-Gitlab-Token, …) and the signature are never kept. |