{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-set-server-enablement-request-schema.json",
  "title": "SetServerEnablementRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-access-control-api-openapi.yml#/components/schemas/SetServerEnablementRequest",
  "properties": {
    "server_name": {
      "type": "string",
      "title": "Server Name",
      "description": "Server name to enable/disable"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "description": "Enable or disable the server"
    },
    "user_id": {
      "type": "string",
      "title": "User Id",
      "description": "Target user/scope ('*' for global)",
      "default": "*"
    },
    "locked": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Locked",
      "description": "Set/clear the admin lock on a user-scoped disable override. Only applied when user_id is a concrete user UUID and enabled=false. None leaves the current value unchanged."
    }
  },
  "type": "object",
  "required": [
    "server_name",
    "enabled"
  ]
}