---
title: "Upsert book export variants (A4/A5)"
method: PATCH
path: "/v2/books/{bookId}"
tags: ["Books", "V2"]
---

# Upsert book export variants (A4/A5)

`PATCH /v2/books/{bookId}`

## Request

- Base URL: `http://0.0.0.0:3001/api`
- URL: `http://0.0.0.0:3001/api/v2/books/{bookId}`
- Auth: none declared

Partially updates export variant fields for A4 and/or A5. Each variant key is optional — only provided fields are $set. Use this to store PDF export URLs and dimensions after generation completes.

## Path parameters

- `bookId` string, required

## Request body

- object
  - `exports` object
    - `A4` object
      - `contentUrl` string, url
      - `coverUrl` string, url
      - `backCoverUrl` string, url
      - `contentWidthMm` number
      - `contentHeightMm` number
      - `numberOfPages` number
    - `A5` object
      - `contentUrl` string, url
      - `coverUrl` string, url
      - `backCoverUrl` string, url
      - `contentWidthMm` number
      - `contentHeightMm` number
      - `numberOfPages` number

## Response `200`

Default Response

---

[API](https://skmtc.dev/storybee/apis/story-bee.md) - [All operations](https://skmtc.dev/storybee/apis/story-bee/llms.txt) - [OpenAPI document](https://skmtc.dev/storybee/apis/story-bee/revisions/d1d0477803c6?raw)
