Delete a Book

Purpose

This API is used to delete a book in notes.

OAuth Scope

Use the scope

ZohoMail.notes.ALL (or) ZohoMail.notes.DELETE

to generate the Authtoken.

ALL - Grants full access to notes.

DELETE - Grants access to delete in notes.

Request URL

Method: DELETE

Group Notes :

https://mail.zoho.com/api/notes/groups/{groupId}/books/{bookId}

or

Personal Notes:

https://mail.zoho.com/api/notes/me/books/{bookId}

Path Parameters

  • groupIdlong
    • Specifies the unique ID of the group.
    • This parameter can be retrieved from the Get all groups API.
  • bookIdlong
    • Specifies the unique ID of the book.
    • This parameter can be retrieved from the Get all books API.

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request - For Group Notes

Copiedcurl "https://mail.zoho.com/api/notes/groups/123456789/books/3764869000000008001" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Request - For Personal Notes

Copiedcurl "https://mail.zoho.com/api/notes/me/books/3764869000000008001" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Success Response

Copied{
    "status": {
        "code": 200,
        "description": "success"
    }
}

Sample Failure Response

Copied{
  "status": {
    "code": 500,
    "description": "Category Does Not Exists."
  },
  "data": {}
}