- Remove all ebook-specific API requests (15 files deleted) - Rename Scan Ebooks.bru to Scan Media Items.bru - Update API paths from /api/ebooks to /api/media-items - Update base URL and environment configuration - Maintain all existing media-items, library, auth, and progress tests Aligns Bruno collection with unified media-items API architecture
52 lines
853 B
Plaintext
52 lines
853 B
Plaintext
meta {
|
|
name: Update Scan Settings
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
put {
|
|
url: {{base_url}}/api/library/scan-settings
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"scan_frequency_minutes": 60,
|
|
"auto_scan_enabled": true
|
|
}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Update Scan Settings
|
|
|
|
Updates the user's ebook scanning settings.
|
|
|
|
**Method:** PUT
|
|
|
|
**Endpoint:** /api/library/scan-settings
|
|
|
|
**Authentication:** Required
|
|
|
|
**Request Body:**
|
|
- `scan_frequency_minutes` (integer, required): Minutes between automatic scans (15-1440)
|
|
- `auto_scan_enabled` (boolean, required): Whether automatic scanning is enabled
|
|
|
|
**Response:**
|
|
- `message` (string): Success message
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Invalid settings
|
|
- 401: Unauthorized
|
|
}
|