{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-set-enablement-request-schema.json",
  "title": "SetEnablementRequest",
  "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/SetEnablementRequest",
  "properties": {
    "element_id": {
      "type": "integer",
      "title": "Element Id",
      "description": "MCP server element ID"
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "description": "Enable or disable the element"
    },
    "user_id": {
      "type": "string",
      "title": "User Id",
      "description": "Target user/scope ('*' for global, 'role:X' for role)",
      "default": "*"
    },
    "scope": {
      "type": "string",
      "title": "Scope",
      "description": "Scope: user, role, or global",
      "default": "global"
    },
    "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": [
    "element_id",
    "enabled"
  ]
}