update_deployment
Update a Gateway deployment's workspace/JWT-sub access or rotate its auth secret. Inspect current settings first; rotation returns a new secret to store securely.
Instructions
Enterprise-gated. Update a registered Gateway deployment, its workspace or JWT-sub access, or rotate its authentication secret. Use get_deployment first to inspect current settings. Rotation returns the new secret once in this MCP transcript, so store it securely immediately. Enterprise-gated. Returns 403 on non-Enterprise Portkey plans.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Deployment UUID | |
| name | No | Replacement display name | |
| type | No | Replacement deployment type | |
| status | No | Replacement deployment status | |
| is_default | No | Whether this is the default deployment | |
| rotate_auth | No | Rotate the one-time deployment authentication secret | |
| gateway_base_url | No | Self-hosted Gateway base URL | |
| jwt_subs_allowed | No | JWT subject values allowed to use the deployment | |
| deployment_config | No | Replacement Gateway configuration, or null to clear it | |
| override_existing | No | Allow replacement of existing deployment settings | |
| workspaces_allowed | No | Workspace slugs this deployment may serve; empty allows all | |
| remove_subs_allowed | No | JWT subject values to remove from the allowlist | |
| allow_all_workspaces | No | Clear workspace restrictions and allow every workspace | |
| mcp_gateway_base_url | No | MCP Gateway base URL | |
| is_dataservice_hosted | No | Whether the deployment hosts its own data service | |
| jwt_sub_workspace_mapping | No | JWT subject to workspace-slug mapping | |
| remove_workspaces_allowed | No | Workspace slugs to remove from the allowlist | |
| is_playground_proxy_allowed | No | Whether Playground proxy traffic is allowed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |