Set the policy of an MCP Gateway connector
Replace the policy of a connector (connectorId from getMcpGatewayConnectors) and return it. Read it first with getMcpGatewayConnectorPolicy and send its version as expectedVersion (null when none is stored): a 409 GatewayConnectorPolicyVersionConflictError means it changed since, read it again. defaultSetting is required, whole; rules, when given, replace every rule in the order given (50 at most, each name unique whatever its case), and left out keep the stored ones. To give a connector to some employees only, block access in defaultSetting and add a rule whose filter includes them, before any rule that would match them first. It never approves a tool: setMcpGatewayConnectorToolStatuses does. A 404 means the company has no such connector. The MCP Gateway serves employees, through their one Primo connection, the tools of the MCP servers (connectors) IT added. No credential is ever sent or returned here: a shared account is connected, and the address or authentication of a custom connector changed, in the cockpit, at cockpitUrl. A company without the MCP Gateway gets a 403 McpGatewayNotEnabledError; a 503 means Primo could not check it, try again in a minute.