Add a book
Adds a new book to your store.
Adds a new book to your store.
Request Body
application/json
The book's title.
The genre a book belongs to.
Value in
"fiction" | "nonfiction" | "technology" | "poetry"identifierIsbn10 | Isbn13
The book's ISBN, in either format.
Show variant attributes
Value in
"isbn10"The 10-character ISBN.
notesstring
Private notes, never shown to customers.
Response Body
application/json
application/json
curl -X POST "https://example.com/books" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "genre": "fiction" }'{ "title": "string", "genre": "fiction", "identifier": { "type": "isbn10", "value": "string" }, "notes": "string", "id": "string", "createdAt": "2019-08-24T14:15:22Z"}{ "code": "string", "message": "string"}