{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-set-device-scope-request-schema.json",
  "title": "SetDeviceScopeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-devices-api-openapi.yml#/components/schemas/SetDeviceScopeRequest",
  "properties": {
    "scope": {
      "type": "string",
      "title": "Scope",
      "description": "One of: personal, shared."
    },
    "force": {
      "type": "boolean",
      "title": "Force",
      "description": "Demotion only: confirm deleting the non-owner enablement rows that sharing accumulated. Without it, demoting a device whose servers have role/user/global grants beyond the owner is rejected with 409 so the dashboard can show what would be lost.",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "scope"
  ]
}