GET - Get All Attachment details of a Group/Personal Task

Purpose

This API is used to retrieve details of all the attachments in a group/personal task.

OAuth Scope

Use the scope

ZohoMail.tasks.ALL (or) ZohoMail.tasks.READ

to generate the Authtoken.

ALL - Full access to tasks.

READ - Retrieve all the attachments from a group/personal task.

Request URL

Method: GET

Group task:

https://mail.zoho.com/api/tasks/groups/{zgid}/{taskId}/attachments

Personal task:

https://mail.zoho.com/api/tasks/me/{taskId}/attachments

 

Path Parameters

  • zgid* long
    • Specifies the unique identifier used for groups in an organization.
    • This parameter can be retrieved from the Get all groups API.
  • taskId* long

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request - Group Task

Copiedcurl "https://mail.zoho.com/api/tasks/groups/5******048/48184******91002/attachments" \
-X GET \
-H "Accept: application/json" \
-H "Authorization: Zoho-oauthtoken ****************"

Sample Request - Personal Task

Copiedcurl "https://mail.zoho.com/api/tasks/me/48184******91002/attachments" \
-X GET \
-H "Accept: application/json" \
-H "Authorization: Zoho-oauthtoken ****************"

Sample Success Response - Group & Personal Task

Copied{
  "status": {
    "code": 200,
    "description": "success"
  },
  "data": {
    "attachments": [
      {
        "name": "Task detail.png",
        "id": 139308222824380020
      },
      {
        "name": "Performance details.csv",
        "id": 139308222824380053
      }
    ]
  }
}

Sample Failure Response - Group & Personal Task

Copied{
  "status": {
    "code": 0,
    "description": "The input passed is invalid"
  },
  "data": {}
}