Task Reminder
A task reminder allows you to set notifications for tasks that need your attention. Reminders help you stay organized by alerting you about due or upcoming tasks.
Attribute
{
"task_id": "982000000567001",
"owners": [
{
"user_id": "982000000321987",
"user_name": "Jane Smith",
"user_email": "jane.smith@example.com",
"user_photo_url": "https://example.com/photos/jane_smith.jpg"
}
],
"title": "Prepare monthly financial report",
"due_date": "2025-11-05",
"due_date_formatted": "05/11/2025",
"is_overdue": false,
"contact": {
"contact_id": "string",
"contact_name": "string",
"contact_type": "string"
},
"parent_task": {
"task_id": "982000000555001",
"task_name": "Annual Audit",
"task_number": "TASK-001",
"status": "completed",
"status_formatted": "Completed"
},
"related_entity": {
"entity_id": "982000000765321",
"entity_type": "invoice",
"entity": "20",
"entity_value": "INV-001"
},
"status": "completed",
"status_formatted": "Completed",
"color_code": "#FF5733",
"custom_status_id": "982000000987654",
"billing_type": "hourly",
"is_billable": true,
"completion_percentage": 75,
"is_subtask": false,
"priority": "high",
"priority_formatted": "High",
"reminder": {
"remind_before": 2,
"remind_at": "2025-11-13",
"remind_at_formatted": "13/11/2025",
"remind_type": "days",
"remind_type_formatted": "Days",
"alert_type": "email",
"alert_type_formatted": "Email"
},
"description": "Prepare and review the quarterly tax statements for ABC Corp.",
"is_accountant_task": false,
"task_number": "T-12345",
"task_number_prefix": "TASK",
"task_number_suffix": 2034,
"task_rate": 1500,
"can_push": true,
"created_by": {
"user_id": "982000000112233",
"user_name": "John Doe"
},
"last_modified_by": {
"user_id": "982000000998877"
},
"template_id": "982000000778899",
"due_after": 10
}
Get tasks list
Get a list of tasks
OAuth Scope : ZohoBooks.settings.READ
Query Parameters
open, open and openopen, open and openopen, open and openopen, open and openlow, lowest, high, highest and normalAll, Overdue, InProgress, Completed, YetToStarted, MyPending, DueToday, PriorityOverdue and Unassignedheaders_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks?organization-id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks?organization-id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/books/v4/tasks?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.com/books/v4/tasks?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"tasks": [
{
"task_id": "982000000567001",
"task_number": "T-12345",
"contact": {
"contact_id": "string",
"contact_name": "string",
"contact_type": "string"
},
"billing_type": "hourly",
"is_billable": true,
"task_rate": 1500,
"completion_percentage": 75,
"title": "Prepare monthly financial report",
"created_time": "2025-10-28T08:30:00+05:30",
"created_time_formatted": "Oct 28, 2025 08:30 AM",
"due_date": "2025-11-05",
"due_date_formatted": "05/11/2025",
"is_accountant_task": false,
"is_overdue": false,
"parent_task": {
"task_id": "982000000555001",
"task_name": "Annual Audit",
"task_number": "TASK-001",
"status": "completed",
"status_formatted": "Completed"
},
"priority": "high",
"priority_formatted": "High",
"status": "completed",
"status_formatted": "Completed",
"color_code": "#FF5733",
"description": "Prepare and review the quarterly tax statements for ABC Corp.",
"subtask_count": 3,
"is_subtask": false,
"owners": [
{
"user_id": "982000000321987",
"user_name": "Jane Smith",
"user_email": "jane.smith@example.com",
"user_photo_url": "https://example.com/photos/jane_smith.jpg"
}
]
},
{...},
{...}
]
}
Bulk delete tasks
Delete multiple tasks.
OAuth Scope : ZohoBooks.settings.DELETE
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks?organization-id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks?organization-id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/books/v4/tasks?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.com/books/v4/tasks?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Task deleted"
}
Get task details
Get the details of a task.
OAuth Scope : ZohoBooks.settings.READ
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/books/v4/tasks/982000000567001?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks/982000000567001?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"task": {
"task_id": "982000000567001",
"owners": [
{
"user_id": "982000000321987",
"user_name": "Jane Smith",
"user_email": "jane.smith@example.com",
"user_photo_url": "https://example.com/photos/jane_smith.jpg"
}
],
"title": "Prepare monthly financial report",
"due_date": "2025-11-05",
"due_date_formatted": "05/11/2025",
"is_overdue": false,
"contact": {
"contact_id": "string",
"contact_name": "string",
"contact_type": "string"
},
"parent_task": {
"task_id": "982000000555001",
"task_name": "Annual Audit",
"task_number": "TASK-001",
"status": "completed",
"status_formatted": "Completed"
},
"related_entity": {
"entity_id": "982000000765321",
"entity_type": "invoice",
"entity": "20",
"entity_value": "INV-001"
},
"status": "completed",
"status_formatted": "Completed",
"color_code": "#FF5733",
"custom_status_id": "982000000987654",
"billing_type": "hourly",
"is_billable": true,
"completion_percentage": 75,
"is_subtask": false,
"priority": "high",
"priority_formatted": "High",
"reminder": {
"remind_before": 2,
"remind_at": "2025-11-13",
"remind_at_formatted": "13/11/2025",
"remind_type": "days",
"remind_type_formatted": "Days",
"alert_type": "email",
"alert_type_formatted": "Email"
},
"description": "Prepare and review the quarterly tax statements for ABC Corp.",
"is_accountant_task": false,
"task_number": "T-12345",
"task_number_prefix": "TASK",
"task_number_suffix": 2034,
"task_rate": 1500,
"can_push": true,
"created_by": {
"user_id": "982000000112233",
"user_name": "John Doe"
},
"last_modified_by": {
"user_id": "982000000998877"
},
"template_id": "982000000778899",
"due_after": 10,
"documents": [
{
"document_id": "982000000567001",
"is_custom_field_document": false,
"comment": {
"comment_id": "982000000567001"
},
"document_name": "invoice_attachment.pdf",
"document_type": "pdf",
"document_size": 1048576,
"document_size_formatted": "1 MB",
"can_send_in_mail": true,
"can_show_in_portal": true,
"attachment_order": 1,
"alter_text": "Scanned invoice copy",
"source": "desktop",
"source_formatted": "Desktop",
"uploaded_on": "2025-10-28T09:00:00Z",
"uploaded_on_formatted": "28/10/2025, 09:00 AM",
"uploaded_by": {
"user_id": "982000000567003",
"user_name": "Jane Doe"
}
}
]
}
}
Delete a task
Delete a task.
OAuth Scope : ZohoBooks.settings.DELETE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/books/v4/tasks/982000000567001?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks/982000000567001?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.com/books/v4/tasks/982000000567001?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Task deleted"
}
Get task comments list
Get the list of comments of a task.
OAuth Scope : ZohoBooks.settings.READ
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks/982000000567001/comments?organization-id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks/982000000567001/comments?organization-id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks/982000000567001/comments?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/books/v4/tasks/982000000567001/comments?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks/982000000567001/comments?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.com/books/v4/tasks/982000000567001/comments?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
Delete a task comment
Delete a comment of a task.
OAuth Scope : ZohoBooks.settings.DELETE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks/982000000567001/comments/987000000654321?organization-id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks/982000000567001/comments/987000000654321?organization-id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks/982000000567001/comments/987000000654321?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/books/v4/tasks/982000000567001/comments/987000000654321?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks/982000000567001/comments/987000000654321?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.com/books/v4/tasks/982000000567001/comments/987000000654321?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Comments deleted"
}
Delete task document
Delete a document attached to a task.
OAuth Scope : ZohoBooks.settings.DELETE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.com/books/v4/tasks/982000000567001/documents/987000000654321?organization-id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.com/books/v4/tasks/982000000567001/documents/987000000654321?organization-id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.com/books/v4/tasks/982000000567001/documents/987000000654321?organization-id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.com")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/books/v4/tasks/982000000567001/documents/987000000654321?organization-id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.com",
"port": null,
"path": "/books/v4/tasks/982000000567001/documents/987000000654321?organization-id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.com/books/v4/tasks/982000000567001/documents/987000000654321?organization-id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Attachment deleted"
}
{ "code": 0, "message": "success", "comments": [ { "comment_id": "982000000567001", "description": "Please review the attached document.", "commented_by": { "user_id": "982000000321987", "user_name": "Jane Smith", "user_photo_url": "https://example.com/photos/jane_smith.jpg" }, "comment_type": "user", "can_delete": true, "date": "2025-10-28", "date_formatted": "28/10/2025", "date_description": "Today", "time": "09:15 AM", "operation_type": "Added", "transaction_id": "982000000567003", "transaction_type": "task_reminder" }, {...}, {...} ] }