library-rpc
Delete a book.
RPC
books.deletePermanently 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/rpcParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | params | string | yes | The book's unique identifier. |
Responses
result Always null on success.
application/json
Errors
| Code | Message | Description |
|---|---|---|
| -32004 | Not found | |
| -32001 | Conflict |
Request example
{
"id": 1,
"jsonrpc": "2.0",
"method": "books.delete",
"params": {
"id": "id_775"
}
}Response example
{
"id": 1,
"jsonrpc": "2.0",
"result": "result_775"
}