info:
  name: Link Unlinked Book - Manual Resolution
  type: http
  seq: 5
http:
  method: POST
  url: '{{base_url}}/api/sync/link-book'
  auth: inherit
  body:
    type: json
    jsonBody: "{\n    \"unlinked_book_id\": \"{{unlinked_book_id"
  headers:
  - key: Authorization
    value: Bearer {{user_token

docs: |-
  ## Link Unlinked Book - Manual Resolution
  
    Manually links an unlinked book to a media item in the library.
  
    **Method:** POST
  
    **Endpoint:** /api/sync/link-book
  
    **Authentication:** Bearer token
  
    **Request Body:**
    - `unlinked_book_id` (string): Unlinked book UUID
    - `media_item_id` (string): Media item UUID to link to
    - `confidence_score` (number): Match confidence (0-1, 1.0 for manual)
  
    **Response:**
    - `status` (string): Link status (linked)
    - `unlinked_book_id` (string): Unlinked book UUID
    - `media_item_id` (string): Media item UUID
    - `message` (string): Success message
  
    **Status Codes:**
    - 200: Success - book linked
    - 400: Invalid request
    - 401: Unauthorized
    - 404: Book or media item not found
    - 500: Internal server error
