Skip to main content
POST
Create

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

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

application/json

The ToolGatesServiceCreateRequest message.

displayName
string
required

The displayName field.

grantPolicyId
string
required

The grantPolicyId field.

description
string

The description field.

enabled
boolean

The enabled field.

filter
Tool Gate Filter · object | null

The ToolGateFilter message.

managedByGuardrails
boolean

The managedByGuardrails field.

priority
integer<int32>

The priority field.

Response

200 - application/json

Successful response

The ToolGatesServiceCreateResponse message.

toolGate
Tool Gate · object | null

The ToolGate message.