- Move all files from bruno-yaml/* to bruno/* - Maintains existing directory structure within categories - Updates bruno/user/auth files with OAuth2 refresh token flow - Updates bruno/user/profile files for user profile management - Adds bruno/dashboard/ directory with dashboard API tests - Preserves all existing test scenarios and OpenCollection YAML format - No functional changes - file reorganization only
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
info:
|
|
name: Bulk Link Unlinked Books
|
|
type: http
|
|
seq: 1
|
|
http:
|
|
method: POST
|
|
url: '{{base_url}}/sync/bulk-link-books'
|
|
auth: inherit
|
|
body:
|
|
type: json
|
|
jsonBody: "{\n \"links\": [\n {\n \"unlinked_book_id\": \"{{unlinkedBookId1"
|
|
headers:
|
|
- key: Content-Type
|
|
value: application/json
|
|
- key: Authorization
|
|
value: Bearer {{authToken
|
|
|
|
docs: |-
|
|
## Bulk Link Unlinked Books
|
|
|
|
Links multiple unlinked books to media items in a single request.
|
|
|
|
**Method:** POST
|
|
|
|
**Endpoint:** /sync/bulk-link-books
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Request Body:**
|
|
- `links` (array): Array of link objects
|
|
- `unlinked_book_id` (string): Unlinked book UUID
|
|
- `media_item_id` (string): Media item UUID to link to
|
|
- `confidence_score` (number): Match confidence (0-1)
|
|
|
|
**Response:**
|
|
- `results` (array): Results for each link attempt
|
|
- `total` (number): Total number of links 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:** Use this endpoint after reviewing suggestions from the Get Unlinked Book Suggestions endpoint.
|