MCP Gateway
ApiSandbox settings

Update Sandbox Settings

Update sandbox settings. Only updates fields provided in the request body. Refreshes the in-memory provider snapshot so changes take effect immediately without restart. Returns the full updated configuration.

PATCH
/api/v1/settings/sandbox

Authorization

User API Key
AuthorizationBearer <token>

User API key (mgw_usr_live_* or mgw_usr_test_*)

In: header

access_token?|

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://loading/api/v1/settings/sandbox" \  -H "Content-Type: application/json" \  -d '{}'
{
  "provider_type": "docker",
  "warm_pool_enabled": true,
  "default_max_per_user": 0,
  "idle_timeout_seconds": 0,
  "stopped_retention_seconds": 0,
  "config_fallback_image": "string",
  "db_default_image": "string",
  "env_allowlist": [
    "string"
  ],
  "db_active_images": [
    "string"
  ],
  "k8s_namespace": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}