Set agent hooks
Replace the agent's hooks document as one unit, the way a Claude Code settings file is saved. http header values are moved into the organization vault; send <redacted> for a header to keep the value already stored for that URL and header name. Every mcp_tool handler's server must be the app namespace of a Custom MCP integration on this agent. Returns the stored document with header values redacted. Returns 404 when the agent is not found or its provider does not run hooks, 403 when agent hooks are not enabled for the organization, and 422 with per-field issues when the document is invalid.
put/v1/agents/{id}/hooks
Request
- Base URLhttps://api.runbear.io
- AuthHTTP bearer
Path parameters
idstring uuid required
Agent ID
Request body
Response
Default Response
Changes
No recorded changes to this operation across all 1 revision of this API.