Change book settings
PATCH
/api/v1/books/settings
const url = 'https://digize.com/api/v1/books/settings';const options = { method: 'PATCH', headers: { 'Idempotency-Key': '5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69', 'x-api-key': '<x-api-key>', 'Content-Type': 'application/json' }, body: '{"authorName":"example","authorBio":"example","authorImageId":"example","imprint":"example","website":"example","anonymize":true,"figureModel":"sunburst","printing":{"color":"BW","quality":"STD","binding":"PB","paper":"060UW444","finish":"M","linen":"N","foil":"G","shippingLevel":"MAIL"},"printShipTo":{"name":"example","organization":"example","street1":"example","street2":"example","city":"example","stateCode":"example","postcode":"example","countryCode":"example","phone":"example","email":"hello@example.com"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://digize.com/api/v1/books/settings \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \ --header 'x-api-key: <x-api-key>' \ --data '{ "authorName": "example", "authorBio": "example", "authorImageId": "example", "imprint": "example", "website": "example", "anonymize": true, "figureModel": "sunburst", "printing": { "color": "BW", "quality": "STD", "binding": "PB", "paper": "060UW444", "finish": "M", "linen": "N", "foil": "G", "shippingLevel": "MAIL" }, "printShipTo": { "name": "example", "organization": "example", "street1": "example", "street2": "example", "city": "example", "stateCode": "example", "postcode": "example", "countryCode": "example", "phone": "example", "email": "hello@example.com" } }'Saves some of Books › Settings; what’s left out stays as it is. They’re copied into each new book’s brief; books already started keep theirs. A new photo is uploaded in Books › Settings; authorImageId: null removes it.
Needs the books:write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
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-1f2d3c4b5a69Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
authorName
string
authorBio
string
imprint
string
website
string
anonymize
boolean
figureModel
string
printing
printShipTo
Any of:
object
name
required
string
street1
required
string
city
required
string
postcode
required
string
countryCode
required
string
phone
required
string
null
Responses
Section titled “Responses”Done
Media typeapplication/json
object
authorName
required
string
authorBio
required
string
imprint
required
string
website
required
string
anonymize
required
boolean
figureModel
required
string
printing
required
printShipTo
required
Any of:
object
name
required
string
street1
required
string
city
required
string
postcode
required
string
countryCode
required
string
phone
required
string
null
authorImageUrl
required
string | null
Example
{ "figureModel": "sunburst", "printing": { "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
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
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
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
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
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
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
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}