Update configuration key naming convention to use snake_case consistently. Applies changes recursively across all subdirectories.
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
meta {
|
|
name: Auto-Link Unlinked Books
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: {{base_url}}/sync/auto-link-books
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
Authorization: Bearer {{authToken}}
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"confidence_threshold": 0.8,
|
|
"limit": 50
|
|
}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Auto-Link Unlinked Books
|
|
|
|
Automatically links unlinked books to media items based on title and author matching with a configurable confidence threshold.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /sync/auto-link-books
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Request Body:**
|
|
- `confidence_threshold` (number, optional): Minimum confidence score for auto-linking (0-1, default: 0.8)
|
|
- `limit` (number, optional): Maximum number of books to auto-link (default: 50)
|
|
|
|
**Response:**
|
|
- `results` (array): Results for each auto-link attempt
|
|
- `total` (number): Total number of books processed
|
|
- `success` (number): Number of successful links
|
|
- `failed` (number): Number of failed links
|
|
|
|
**Status Codes:**
|
|
- 200: Success
|
|
- 400: Invalid request data
|
|
- 401: Unauthorized
|
|
- 500: Internal server error
|
|
|
|
**Note:** Higher confidence thresholds produce fewer but more accurate matches. Consider the tradeoff between automation and accuracy.
|
|
}
|