Delete an Attachment in a Note

Purpose

This API is used to delete a specific attachment in a note.

OAuth Scope

Use the scope

ZohoMail.notes.ALL (or) ZohoMail.notes.DELETE

to generate the Authtoken.

ALL - Grants full access to notes.

DELETE - Grants access to delete in notes.

Request URL

Method: DELETE

Group Notes :

https://mail.zoho.com/api/notes/groups/{groupId}/{noteId}/attachments/{attachmentId}

or

Personal Notes :

https://mail.zoho.com/api/notes/me/{noteId}/attachments/{attachmentId}

Path Parameters

  • groupIdlong
    • Specifies the unique ID of the group.
    • This parameter can be retrieved from the Get all groups API.
  • noteIdlong
    • Specifies the unique ID used of the note whose details are to be retrieved.
    • This parameter can be retrieved from the Get all notes API.
  • attachmentIdlong

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

``

Sample Request - Group Notes

Copiedcurl "https://mail.zoho.comapi/notes/groups/84626808/1712041255679110001/attachments/139313402266320010" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Request - Personal Notes

Copiedcurl "https://mail.zoho.comapi/notes/groups/me/1712041255679110001/attachments/139313402266320010" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Sample Success Response

Copied{
    "status": {
        "code": 200,
        "description": "success"
    }
}

Sample Failure Response

Copied{
  "status": {
    "code": 404,
    "description": "Invalid Input"
  },
  "data": {
    "moreInfo": "The input passed is invalid"
  }
}