Skip to content

Create a book

Books APIBooks

POSThttps://api.example.com/v1/books

AuthRequires authentication via bearerAuth.

Description

Adds a book to the catalog.

Request body

application/jsonrequired

titlebodystringrequired
authorbodystringrequired
published_yearbodyinteger
tagsbodystring[]

Responses

201The created book.application/json
idstringrequired
Unique identifier.
titlestringrequired
The book title.
authorstringrequired
The author's full name.
published_yearinteger
Year of first publication.
tagsstring[]
Free-form labels.
422Validation error.