PUT - Delete attachment

Purpose

This API is used to delete attachment from an event.

Request URL

https://calendar.zoho.com/api/v1/calendars/<CALENDAR_UID>/events/<EVENT_UID>

OAuth Scope

scope=ZohoCalendar.event.ALL

(or)

scope=ZohoCalendar.event.UPDATE

ALL - Full access to events

UPDATE - Deletes the attachment in the event

Request Parameters

  • eventdataJSONObject, mandatory
    • dateandtimeJSONobject, mandatory
      • start- The format should be yyyyMMdd'T'HHmmss'Z' in GMT format or yyyyMMdd (if it is an all-day event).
      • end- The format should be yyyyMMdd'T'HHmmss'Z' in GMT format or yyyyMMdd (if it is an all-day event).
    • etag longmandatory

      Event tag to identify the mode in which the event was created/ modified(always send latest etag).

      Note:

      etag- etag value of the event previously received in the API response. (Header need not be sent if "etag" is present in eventdata)

    • attachJSON, mandatory
      rmAttachIdstring(comma separated), mandatory

      You can use file_id from add event /get event details response 

Sample Request

Copiedhttps://calendar.zoho.com/api/v1/calendars/l9WWZCf_SJWcr3uIuBOq5g==/events/fb6ac0a3cc0a42fc95020c18b58a6ac9@zoho.com?
eventdata=
{
 "uid":"78fec73302b1469cbfb52808f4e056f7@zoho.com",
 "dateandtime": {
                "timezone": "Asia/Kolkata",
                "start": "20221126T233000+0530",
                "end": "20221127T000000+0530"
            }
"title":"Event"
"attach":{
"rmAttachId":"1669355735483000001,1669355735483000002"
},
"etag":"1669355735290"
}

Sample Response

Copied{
    "events": [
        {
            "enable_eventmanagement": false,
            "role": "organizer",
            "color": "",
            "orgDName": "User2",
            "calid": "295010000000002003",
            "has_attachment": false,
            "title": "Event",
            "calendar_alarm": false,
            "duration": "1800000",
            "uid": "78fec73302b1469cbfb52808f4e056f7@zoho.com",
            "createdby": "user2@pavi1.com",
            "etype": "EVENT",
            "id": "295010000000234019",
            "isApproved": true,
            "viewEventURL": "https://calendar.zoho.com/zc/viewevent/964e74a26ffe49cb81a58ff1548506ac_EID78fec73302b1469cbfb52808f4e056f7@zoho.com",
            "dateandtime": {
                "timezone": "Asia/Kolkata",
                "start": "20221126T233000+0530",
                "end": "20221127T000000+0530"
            },
            "lastmodifiedtime": "20221125T055935Z",
            "isprivate": false,
            "rsvpStatus": 0,
            "createdtime_millis": "1669355735290",
            "createdtime": "20221125T055535Z",
            "user_timezone": "Asia/Kolkata",
            "attRSVPNotifyType": 0,
            "estatus": "updated",
            "organizer": "user2@pavi1.com",
            "isallday": false,
            "transparency": 0,
            "modifiedby": "user2@pavi1.com",
            "etag": "1669355975081",
            "caluid": "964e74a26ffe49cb81a58ff1548506ac",
            "multiday": false,
            "allowForwarding": false
        }
    ]
}