Create a New Book in Notes

Purpose

This API is used to create a new book in notes.

OAuth Scope

Use the scope

ZohoMail.notes.ALL (or) ZohoMail.notes.CREATE

to generate the Authtoken.

ALL - Grants full access to notes.

CREATE - Grants access to create in notes.

Request URL

Method: POST

Group Notes :

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

or

Personal Notes:

https://mail.zoho.com/api/notes/me/books

Path Parameters

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

Request Body ( JSON Object)

  • bookName* string
    • Provide a name for the notebook being created.

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request (For Group)

Copiedcurl "https://mail.zoho.com/api/notes/groups/1726251/books" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"\
-d '{
 "bookName": "zylker"
 }'

Sample Request (For Personal)

Copiedcurl "https://mail.zoho.com/api/notes/me/books" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"\
-d '{
 "bookName": "zylker"
 }'

Sample Success Response

Copied{
"status": {
"code": 201,
"description": "Created"
},
"data": {
"bookName": "zylker",
"bookId": "3764869000000012001"
}
}

Sample Failure Response

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