{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-connector-toggle-request-schema.json",
  "title": "ConnectorToggleRequest",
  "description": "Request to toggle connector active status",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-connector-control-api-openapi.yml#/components/schemas/ConnectorToggleRequest",
  "type": "object",
  "required": [
    "type"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "sync",
        "agent"
      ],
      "description": "Toggle type: 'sync' for data synchronization, 'agent' for AI agent integration"
    },
    "deviceId": {
      "type": "string",
      "description": "Sent by the desktop app. Required when enabling sync on a Local FS\nconnector with no owner yet; must match `ownerDeviceId` afterwards.\n"
    },
    "deviceName": {
      "type": "string",
      "description": "Sent by the desktop app with `deviceId`. Stored as `ownerDeviceName`\nwhen the device claims the connector.\n"
    }
  }
}