DELETE - Delete a Group/ Personal Task

Purpose

This API is used to delete a group or personal task.

OAuth Scope

Use the scope

ZohoMail.tasks.ALL (or) ZohoMail.tasks.DELETE

to generate the Authtoken.

ALL - Full access to tasks.

DELETE - Delete a group/personal task.

Request URL

Method: DELETE

Group Task:

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

Personal Task:

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

Path Parameters

  • zgidlong
    • Specifies the unique identifier used for groups in an organization.
    • This parameter can be retrieved from the Get all groups API.
  • taskIdlong

 

* - Mandatory parameter

Response Codes

Refer here for the response codes and their meaning.

Sample Request

CopiedGroup task:

curl "https://mail.zoho.com/api/tasks/groups/5******048/48184******91002" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"

Personal task:

curl "https://mail.zoho.com/api/tasks/me/48184******91002" \
-X DELETE \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization:Zoho-oauthtoken *****"