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.
