Invokes the c1.api.hooks.v1.HooksService.Create method.
Documentation Index
Fetch the complete documentation index at: https://conductorone-groman-network-requirements-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
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:
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:
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.
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: