PublishDrive
Api

Delete a book

DELETE
/books/{bookPublicId}
apikey<token>

In: header

Path Parameters

bookPublicId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X DELETE "https://api.publishdrive.com/v2/distribution/books/e9e0d147-52cb-11f1-8d0d-aedf0546306a" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
Empty
Empty
{
  "message": "Book not found"
}
{
  "title": "Conflict",
  "status": 409,
  "detail": "The book cannot be deleted in its current state.",
  "instance": "/v2/distribution/books/e9e0d212-52cb-11f1-8d0d-aedf0546306a",
  "invalidParams": []
}

On this page