Skip to main content
PATCH
Update a lifecycle hook

Authorizations

Authorization
string
header
required

API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.

Path Parameters

agentId
string<uuid>
required

Agent ID.

hookId
string<uuid>
required

Hook ID.

Body

application/json
name
string
input
object
exposeAs
string | null

Send null to stop exposing the result.

responseMap
object[] | null

Lift values out of the hook's response into top-level prompt variables. Pre-call hooks only; requires exposeAs; not accepted on lookup_row. Blank values ("", null, missing) never override. See Response mapping. Send null or [] to clear.

Maximum array length: 200
required
boolean
default:false
timeoutMs
integer
default:3000
enabled
boolean

Soft-disable without deleting.

Response

Success.

hook
object