library-rpc

Delete a book.

RPCbooks.delete

Permanently removes the book and unlinks it from its author. A book that is currently borrowed cannot be deleted — return it first. The result is always null on success.

Servers

•mock: https://mock.api.selfdochub.com/rpc

Parameters

NameInTypeRequiredDescription
idparamsstringyesThe book's unique identifier.

Responses

result Always null on success.

application/json

Errors

CodeMessageDescription
-32004Not found
-32001Conflict

Request example

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "books.delete",
  "params": {
    "id": "id_775"
  }
}

Response example

{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "result_775"
}