Update MCP Gateway
Partially update an existing MCP gateway. The servers_config body is deep-merged onto the persisted config — fields you don’t send are left untouched. Semantics:
- Top-level keys (
common_overrides,servers) update independently. nullat any level means “delete this key” (RFC 7396 / JSON Merge Patch). Examples:common_overrides.input_guardrails_config: nullremoves that policy;common_overrides: nullclears the whole object;servers: nullclears the whole array.- The
serversarray is keyed by(saved_name, server_version). Each entry in the patch matches an existing entry by that key — found entries are deep-merged; new ones are appended. Existing entries not referenced in the patch are preserved. - To remove a server entry, send it with
_delete: true(idempotent — removing a missing server is a no-op). - Inside a guardrails policy,
additional_configis deep-merged; arrays (block) and primitives (enabled,guardrail_name) are replaced wholesale.
Requires X-Enkrypt-MCP-Gateway header.
Documentation Index
Fetch the complete documentation index at: https://docs.enkryptai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Headers
Gateway saved_name
32"my-dev-gateway"
Gateway version (defaults to "v1")
"v1"
Body
Partial-update payload. servers_config is deep-merged onto the persisted config — keys you don't send are left untouched. See the /mcp-gateway/modify-gateway operation description for full semantics (null means delete; the servers array is keyed by saved_name + server_version with _delete: true for removal; guardrails policies replace as a unit while additional_config deep-merges).
Partial servers_config. Keys not present are left untouched. null at any level deletes that key. The servers array is upserted by (saved_name, server_version); send _delete: true on an entry to remove it. Per-server entries in this PATCH context additionally accept _delete: true (boolean), which is not part of the persisted shape.
Toggle the gateway's active state.
Mark this gateway as a sample.

