v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-224341,4072.0 MB
Hook

Create

Invokes the c1.api.hooks.v1.HooksService.Create method.

post/api/v1/hooks

Request body

descriptionstring

The description field.

displayNamestring required

The displayName field.

enabledboolean

The enabled field.

event'HOOK_EVENT_TYPE_UNSPECIFIED' | 'HOOK_EVENT_TYPE_PRE_TOOL_USE' | 'HOOK_EVENT_TYPE_POST_TOOL_USE'

The event field.

priorityinteger

The priority field.

Response

Successful response