Skip to main content
PUT
Set the policy of an MCP Gateway connector
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

connectorId
string
required

Body

application/json
expectedVersion
integer | null
required

The version read from getMcpGatewayConnectorPolicy, null when none is stored

Required range: 0 < x <= 9007199254740991
defaultSetting
object
required

Who may use the approved tools of the connector, by kind

rules
object[]

Every rule, in order, replacing the stored ones; left out, the stored rules stay

Maximum array length: 50

Response

default - application/json
source
enum<string>
required

credential_mode_default: none is stored and the default of the credential mode applies

Available options:
stored,
credential_mode_default
version
integer | null
required

What setMcpGatewayConnectorPolicy takes as expectedVersion

Required range: -9007199254740991 <= x <= 9007199254740991
defaultSetting
object
required

Who may use the approved tools of the connector, by kind

rules
object[]
required

In order: the first whose filter matches an employee applies

updatedAt
string | null
required