Skip to content

Change a book's store details

PATCH
/api/v1/books/{id}/metadata
curl --request PATCH \
--url https://digize.com/api/v1/books/example/metadata \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "description": "example", "keywords": [ "example" ], "bisac": [ "example" ], "series": "example", "seriesNumber": 1, "isbn": "example", "ebookIsbn": "example", "printPrice": 1, "ebookPrice": 1 }'

Changes some of what stores show for a book and KDP and IngramSpark ask for: the description (4,000 characters at most), seven keywords, three BISAC subject codes, the series, each format’s ISBN-13, and the print and ebook prices in the workspace’s currency. What’s left out stays as it is.

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
description
string
<= 4000 characters
keywords
Array<string>
<= 7 items
bisac
Array<string>
<= 3 items
series
string
<= 200 characters
seriesNumber
Any of:
integer
>= 1 <= 999
isbn

An ISBN-13, kept as its 13 digits; empty for none.

string
<= 20 characters
ebookIsbn

An ISBN-13, kept as its 13 digits; empty for none.

string
<= 20 characters
printPrice
Any of:
integer
<= 100000000
ebookPrice
Any of:
integer
<= 100000000

Example generated

{
"description": "example",
"keywords": [
"example"
],
"bisac": [
"example"
],
"series": "example",
"seriesNumber": 1,
"isbn": "example",
"ebookIsbn": "example",
"printPrice": 1,
"ebookPrice": 1
}

Done

Media typeapplication/json

What stores show and KDP and IngramSpark ask for. Prices are in the workspace currency’s minor units.

object
description
required
string
<= 4000 characters
keywords
required
Array<string>
<= 7 items
bisac
required
Array<string>
<= 3 items
series
required
string
<= 200 characters
seriesNumber
required
Any of:
integer
>= 1 <= 999
isbn
required

An ISBN-13, kept as its 13 digits; empty for none.

string
<= 20 characters
ebookIsbn
required

An ISBN-13, kept as its 13 digits; empty for none.

string
<= 20 characters
printPrice
required
Any of:
integer
<= 100000000
ebookPrice
required
Any of:
integer
<= 100000000

Example generated

{
"description": "example",
"keywords": [
"example"
],
"bisac": [
"example"
],
"series": "example",
"seriesNumber": 1,
"isbn": "example",
"ebookIsbn": "example",
"printPrice": 1,
"ebookPrice": 1
}

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"
}
}