GET - Get attachment details 

Purpose

This API is used to get the details of a specific attachment in a particular event.

Request URL

https://calendar.zoho.com/api/v1/calendars/<CAL_UID>/events/<EVENT_UID>/attachment/<FILE_ID>

OAuth Scope

scope=ZohoCalendar.event.ALL

(or)

scope=ZohoCalendar.event.READ

A​LL - Full access to events

READ - Get attachment

Path Parameters

  • calendaruidstring,
    • Calendar Unique Identifier. The calendar UID of the calendar from which the specific event should be fetched.
    • The Calendar UID can be retrieved from Get calendar details API.
  • eventuidstring,
    • Event Unique Identifier. The event UID of the event, needs to be fetched.
    • The event UID can be retrieved from Get event details API.
  • file_id
    • The file_id can be retrieved from add event /get event details response 

Parameters

  • apimode
    • view- Response will be redirected to view the attachment in the browser.
    • download- download the attachment.

Note:

All png. format files will be downloaded for both view and download requests.

Sample Request- View

Copiedhttps://calendar.zoho.com/api/v1/calendars/{caluid}/events/{eventuid}/attachment/{fileid}?apimode=view 

Sample Request- Download

Copiedhttps://calendar.zoho.com/api/v1/calendars/{caluid}/events/{eventuid}/attachment/{fileid}?apimode=view 

Sample Response - Mode: VIEW

CopiedMode: VIEW 

View the attachment from the redirect URL that is generated.

Sample Response - Mode: DOWNLOAD

CopiedMode: DOWNLOAD

The attachment will be downloaded as a file stream.