info:
  name: Disable Device Sync
  type: http
  seq: 8

http:
  method: PUT
  url: '{{base_url}}/api/devices/{{device_id}}'
  auth: inherit
  headers:
    - key: Content-Type
      value: application/json
  body:
    type: json
    json:
      device_name: My Kobo Clara
      sync_enabled: false
      auto_sync: false
      sync_frequency_minutes: 30

docs: |-
  ## Disable Device Sync

  Disables synchronization for a specific device.

  **Method:** PUT

  **Endpoint:** /api/devices/:device_id

  **Authentication:** Required (Bearer token)

  **Path Parameters:**
  - `device_id` (string): UUID of the device

  **Request Body:**
  - `device_name` (string, optional): Device name
  - `sync_enabled` (boolean): Must be `false`
  - `auto_sync` (boolean): Should be `false`
  - `sync_frequency_minutes` (integer, optional): Any value (sync disabled)

  **Response:**
  - `id` (string): Device UUID
  - `device_name` (string): Device name
  - `sync_enabled` (boolean): `false`
  - `auto_sync` (boolean): `false`
  - `message` (string): Confirmation message

  **Status Codes:**
  - 200: Sync disabled successfully
  - 401: Unauthorized
  - 403: Forbidden
  - 404: Device not found

  **Use Cases:**
  - Temporarily disable sync for troubleshooting
  - Stop sync for a lost or stolen device
  - Disable sync before selling or giving away device
  - Prevent data usage on limited connections
