POST - Add an Attachment to a Note

Purpose

This API is used to add the attachment to a single note.

Request URL 

Group Notes

https://mail.zoho.com/api/notes/groups/<groupid>/<entityId>/attachments/

Personal notes

https://mail.zoho.com/api/notes/me/<entityId>/attachments/

Request Parameters

ParameterData TypeDescription
GroupID*LongThe unique identifier used for groups in the organization
entityID*IntegerThe unique identifier used for the note.
attach*FileAttach files as a part of multipart form data

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Group Notes

Sample Request


				https://mail.zoho.com/api/notes/groups/1726251/36000000037002/attachments/			

Personal Notes

Sample Request


				https://mail.zoho.com/api/notes/me/36000000037002/attachments/			

Sample Response


				{
    "status": {
        "code": 200,
        "description": "success"
    },
    "data": {
        "attachments": [{
            "fileName": "Blog.txt",
            "attachmentID": "4"
        }, {
            "fileName": "Webpage.jpg",
            "attachmentID": "5"
        }]
    }
}