Create
Invokes the c1.api.hooks.v1.HooksService.Create method.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Body
The HooksServiceCreateRequest message.
This message contains a oneof named hook_type. Only a single field of the following list may be set at a time:
- function
- builtinPattern
The displayName field.
BuiltInPattern references a ConductorOne-maintained DLP pattern. The specific pattern and its configuration are encoded as a oneof.
This message contains a oneof named config. Only a single field of the following list may be set at a time:
- piiRedaction
- creditCardBlocking
- queryScopeLimit
- writeAuthorization
- sensitiveFileGuard
The description field.
The enabled field.
The event field.
HOOK_EVENT_TYPE_UNSPECIFIED, HOOK_EVENT_TYPE_PRE_TOOL_USE, HOOK_EVENT_TYPE_POST_TOOL_USE HookFilter determines which tool calls a hook applies to.
HookFunctionRef identifies a customer-authored function to invoke.
The priority field.
Response
Successful response
The HooksServiceCreateResponse message.
Hook represents a customer-configured interception point for tool calls.
This message contains a oneof named hook_type. Only a single field of the following list may be set at a time:
- function
- builtinPattern