fix: correct API endpoint path from /api/library/scan-settings to /api/libraries/scan-settings
- Update endpoint path in Get Scan Settings Bruno collection file - Update endpoint path in Update Scan Settings Bruno collection file - Update endpoint path in API reference documentation This corrects a typo in the API path where 'library' was singular instead of plural.
This commit is contained in:
@@ -19,22 +19,22 @@ settings:
|
|||||||
|
|
||||||
docs: |-
|
docs: |-
|
||||||
## Get Scan Settings
|
## Get Scan Settings
|
||||||
|
|
||||||
Retrieves the user's current library scanning settings.
|
Retrieves the user's current library scanning settings.
|
||||||
|
|
||||||
**Method:** GET
|
**Method:** GET
|
||||||
|
|
||||||
**Endpoint:** /api/library/scan-settings
|
**Endpoint:** /api/libraries/scan-settings
|
||||||
|
|
||||||
**Authentication:** Required (Bearer token)
|
**Authentication:** Required (Bearer token)
|
||||||
|
|
||||||
**Response:**
|
**Response:**
|
||||||
- `scan_frequency_minutes` (number): Minutes between automatic scans (minimum 1)
|
- `scan_frequency_minutes` (number): Minutes between automatic scans (minimum 1)
|
||||||
- `auto_scan_enabled` (boolean): Whether automatic scanning is enabled
|
- `auto_scan_enabled` (boolean): Whether automatic scanning is enabled
|
||||||
- `last_scan_at` (string, optional): Timestamp of last scan
|
- `last_scan_at` (string, optional): Timestamp of last scan
|
||||||
- `next_scan_at` (string, optional): Timestamp of next scheduled scan
|
- `next_scan_at` (string, optional): Timestamp of next scheduled scan
|
||||||
- `library_id` (string, optional): Library ID for context
|
- `library_id` (string, optional): Library ID for context
|
||||||
|
|
||||||
**Status Codes:**
|
**Status Codes:**
|
||||||
- 200: Success
|
- 200: Success
|
||||||
- 401: Unauthorized
|
- 401: Unauthorized
|
||||||
|
|||||||
@@ -26,22 +26,22 @@ settings:
|
|||||||
|
|
||||||
docs: |-
|
docs: |-
|
||||||
## Update Scan Settings
|
## Update Scan Settings
|
||||||
|
|
||||||
Updates the user's media scanning settings.
|
Updates the user's media scanning settings.
|
||||||
|
|
||||||
**Method:** PUT
|
**Method:** PUT
|
||||||
|
|
||||||
**Endpoint:** /api/library/scan-settings
|
**Endpoint:** /api/libraries/scan-settings
|
||||||
|
|
||||||
**Authentication:** Required
|
**Authentication:** Required
|
||||||
|
|
||||||
**Request Body:**
|
**Request Body:**
|
||||||
- `scan_frequency_minutes` (integer, required): Minutes between automatic scans (15-1440)
|
- `scan_frequency_minutes` (integer, required): Minutes between automatic scans (15-1440)
|
||||||
- `auto_scan_enabled` (boolean, required): Whether automatic scanning is enabled
|
- `auto_scan_enabled` (boolean, required): Whether automatic scanning is enabled
|
||||||
|
|
||||||
**Response:**
|
**Response:**
|
||||||
- `message` (string): Success message
|
- `message` (string): Success message
|
||||||
|
|
||||||
**Status Codes:**
|
**Status Codes:**
|
||||||
- 200: Success
|
- 200: Success
|
||||||
- 400: Invalid settings
|
- 400: Invalid settings
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ Content-Type: application/json
|
|||||||
### Update Scan Settings
|
### Update Scan Settings
|
||||||
|
|
||||||
```http
|
```http
|
||||||
PUT /api/library/scan-settings
|
PUT /api/libraries/scan-settings
|
||||||
Authorization: Bearer <token>
|
Authorization: Bearer <token>
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user