Skip to content

Set how a book prints

PUT
/api/v1/books/{id}/print
curl --request PUT \
--url https://digize.com/api/v1/books/example/print \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "spec": { "color": "BW", "quality": "STD", "binding": "PB", "paper": "060UW444", "finish": "M", "linen": "N", "foil": "G", "shippingLevel": "MAIL" } }'

Sets a book’s print spec: colour, quality, binding, paper and cover finish (and a linen hardcover’s cloth and foil), joined with its trim into a Lulu SKU, and how author copies ship. spec: null goes back to Books › Settings › Printing’s defaults. Refused when Lulu doesn’t make that combination.

Needs the books:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
spec
required
Any of:
object
color
required

BW black and white, FC colour throughout.

string
Allowed values: BW FC
quality
required

STD standard, PRE premium ink and paper handling.

string
Allowed values: STD PRE
binding
required

PB paperback, CW casewrap hardcover, LW linen hardcover, CO coil, SS saddle stitch.

string
Allowed values: PB CW LW CO SS
paper
required

060UW444 60# white, 060UC444 60# cream, 080CW444 80# coated white, 070CW460 70# coated white.

string
Allowed values: 060UW444 060UC444 080CW444 070CW460
finish
required

The cover: M matte, G gloss.

string
Allowed values: M G
linen
required
Any of:
string
Allowed values: N G R B T F
foil
required
Any of:
string
Allowed values: G B W
shippingLevel
required

How author copies ship unless an order says otherwise.

string
Allowed values: MAIL PRIORITY_MAIL GROUND_HD GROUND_BUS GROUND EXPEDITED EXPRESS

Done

Media typeapplication/json
object
color
required

BW black and white, FC colour throughout.

string
Allowed values: BW FC
quality
required

STD standard, PRE premium ink and paper handling.

string
Allowed values: STD PRE
binding
required

PB paperback, CW casewrap hardcover, LW linen hardcover, CO coil, SS saddle stitch.

string
Allowed values: PB CW LW CO SS
paper
required

060UW444 60# white, 060UC444 60# cream, 080CW444 80# coated white, 070CW460 70# coated white.

string
Allowed values: 060UW444 060UC444 080CW444 070CW460
finish
required

The cover: M matte, G gloss.

string
Allowed values: M G
linen
required
Any of:
string
Allowed values: N G R B T F
foil
required
Any of:
string
Allowed values: G B W
shippingLevel
required

How author copies ship unless an order says otherwise.

string
Allowed values: MAIL PRIORITY_MAIL GROUND_HD GROUND_BUS GROUND EXPEDITED EXPRESS
podPackageId
required

Lulu’s SKU: the book’s trim and this spec joined.

string
label
required

The SKU in words.

string
problem
required

Why Lulu wouldn’t print it at the book’s pages, or null.

string | null
saved
required

False while the book follows Books › Settings › Printing’s defaults.

boolean
pages
required
object
count
required
integer
>= -9007199254740991 <= 9007199254740991
estimated
required

True until a build counts the pages: estimated from the words the book’s shape plans.

boolean
words
required
integer
>= -9007199254740991 <= 9007199254740991
buildId
required

The build that counted them.

string | null

Example

{
"color": "BW",
"quality": "STD",
"binding": "PB",
"paper": "060UW444",
"finish": "M",
"linen": "N",
"foil": "G",
"shippingLevel": "MAIL"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}