POST - Attach file

Purpose

This API is used to attach a file to an event in the calendar. 

Request URL

 https://calendar.zoho.com/api/v1/attachment

OAuth Scope

scope=ZohoCalendar.event.ALL

(or)

scope=ZohoCalendar.event.CREATE

ALL - Full access to events

CREATE - Attach file

Request Body

  • Type - form-data
  • key - zcl_attachFile
  • value - File as stream
  • Max size: 10240 kB

Sample Request

Copiedhttps://calendar.zoho.com/api/v1/attachment

Sample Response

Copied{
    "attachments": [
        {
            "preview": true,
            "fileName": "Screenshot from 2022-11-23 12-36-52.png",
            "size": 298643,
            "contentType": "image/png",
            "fileId": "1669355207679000001"
        }
    ]
}