<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments
Announcement Comment
Comments are form of notifications about the announcement which can only be added by technicians.
Attributes
id (long)
Unique identifier of the announcement comment
comment (html)
Content of the announcement notification comment
is_public (boolean)
Indicates whether the comment notification shared to requesters or not
announcement (announcement)
Indicates the announcement to which the comment is associated
parent_comment (announcement_comment)
Represents the comment of the current reply.
created_by (user)read only
Indicates the technician who created the notification comment
More Attributes Expand all
Add Announcement Comment
This operation is used to add an announcement notification comment.
Mandatory Fields :- comment
Url
Attributes
id (long)
Unique identifier of the announcement comment
comment (html)
Content of the announcement notification comment
is_public (boolean)
Indicates whether the comment notification shared to requesters or not
announcement (announcement)
Indicates the announcement to which the comment is associated
parent_comment (announcement_comment)
Represents the comment of the current reply.
created_by (user)read only
Indicates the technician who created the notification comment
More Attributes Expand all
$ curl <service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments\
-X POST\
-H "Accept: application/vnd.manageengine.sdp.v3+json"\
-H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
-H "Content-Type: application/x-www-form-urlencoded"\
-d input_data='{
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family: 'PT Sans',Arial,Helvetica,sans-serif, sans-serif;font-size: 13px;\"><div>Test Private Notification comment<br></div></div>",
"is_public": false
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family: 'PT Sans',Arial,Helvetica,sans-serif, sans-serif;font-size: 13px;\"><div>Test Private Notification comment<br></div></div>",
"is_public": false
}
};
params = {"input_data": input_data};
response = invokeurl
[
url: url
type: POST
parameters: params
headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
"Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
"Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family: 'PT Sans',Arial,Helvetica,sans-serif, sans-serif;font-size: 13px;\"><div>Test Private Notification comment<br></div></div>",
"is_public": false
}
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method post -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family: 'PT Sans',Arial,Helvetica,sans-serif, sans-serif;font-size: 13px;\"><div>Test Private Notification comment<br></div></div>",
"is_public": false
}
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="POST")
try:
with urlopen(httprequest) as response:
print(response.read().decode())
except HTTPError as e:
print(e.read().decode())
{
"response_status": {
"status_code": 2000,
"status": "success"
},
"announcement_comment": {
"parent_comment": null,
"created_time": {
"display_value": "Nov 20, 2024 01:49 PM",
"value": "1732090780394"
},
"last_updated_time": null,
"is_public": false,
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div>Test Private Notification Comment<br></div></div>",
"id": "100000000000052137",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"template": {
"inactive": false,
"name": "General Announcement Template",
"id": "100000000000033852"
},
"attachments": [
{
"size": "388453",
"content_type": "image/png",
"file_id": "3005",
"name": "testImage.png",
"content_url": "/announcements/100000000000052059/_uploads/3005",
"id": "100000000000052083"
},
{
"size": "361693",
"content_type": "image/png",
"file_id": "3003",
"name": "testPoster.png",
"content_url": "/announcements/100000000000052059/_uploads/3003",
"id": "100000000000052069"
}
],
"has_user_group": true,
"show_to_requester": true,
"show_to_all_technician": false,
"description": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><b>General Announcement</b> - <i>Description</i> >> 1<br></div></div><div><br></div></div>",
"has_technician_group": false,
"title": "General Announcement - Title >> 1",
"access_level": "SHARED",
"last_updated_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"to_date": null,
"last_updated_on": {
"display_value": "Nov 20, 2024 01:49 PM",
"value": "1732090780601"
},
"id": "100000000000052059",
"announcement_type": {
"name": "New Service Launched",
"id": "100000000000034284"
},
"views_count": "1",
"state": "ACTIVE",
"technician_groups": [],
"from_date": {
"display_value": "Nov 20, 2024 11:51 AM",
"value": "1732083706992"
},
"show_banner_until_expiry": true,
"module": null,
"is_followed": false,
"isbannerenabled": true,
"services": [
{
"image": "emp-onboarding",
"inactive": false,
"name": "Employee Onboarding",
"description": "Requests related to new employee onboarding",
"id": "100000000000040417",
"sort_index": "0"
},
{
"image": "fin-management",
"inactive": false,
"name": "Feature Request",
"description": "Requests related to new features or improvements",
"id": "100000000000040419",
"sort_index": "0"
}
],
"priority": {
"color": "#ff0000",
"name": "High",
"id": "100000000000006994"
},
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"deleted": false,
"comments_count": "2",
"created_date": {
"display_value": "Nov 20, 2024 12:00 PM",
"value": "1732084223469"
},
"to": ["admin.mt@test.com"],
"banner_style": {
"bgcolor": "#6dc5fa",
"fontcolor": "#000000",
"ispriority_based": false,
"iconname": "emergency",
"alignment": "left"
},
"user_groups": [
{
"name": "UG - 1",
"id": "100000000000052003"
},
{
"name": "UG - 2",
"id": "100000000000052007"
}
]
}
}
}
Edit Announcement Comment
This operation is used to update an announcement comment.
Url
<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}
Attributes
id (long)
Unique identifier of the announcement comment
comment (html)
Content of the announcement notification comment
is_public (boolean)
Indicates whether the comment notification shared to requesters or not
announcement (announcement)
Indicates the announcement to which the comment is associated
parent_comment (announcement_comment)
Represents the comment of the current reply.
created_by (user)read only
Indicates the technician who created the notification comment
More Attributes Expand all
$ curl <service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}\
-X PUT\
-H "Accept: application/vnd.manageengine.sdp.v3+json"\
-H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
-H "Content-Type: application/x-www-form-urlencoded"\
-d input_data='{
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><i>Test</i> <b>Public</b> <u>Notification</u><br></div></div>",
"is_public": true
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><i>Test</i> <b>Public</b> <u>Notification</u><br></div></div>",
"is_public": true
}
};
params = {"input_data": input_data};
response = invokeurl
[
url: url
type: PUT
parameters: params
headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}"
$headers = @{"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
$input_data = @'
{
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><i>Test</i> <b>Public</b> <u>Notification</u><br></div></div>",
"is_public": true
}
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
"announcement_comment": {
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><i>Test</i> <b>Public</b> <u>Notification</u><br></div></div>",
"is_public": true
}
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
with urlopen(httprequest) as response:
print(response.read().decode())
except HTTPError as e:
print(e.read().decode())
{
"response_status": {
"status_code": 2000,
"status": "success"
},
"announcement_comment": {
"parent_comment": null,
"created_time": {
"display_value": "Nov 20, 2024 01:49 PM",
"value": "1732090780394"
},
"last_updated_time": {
"display_value": "Nov 20, 2024 01:51 PM",
"value": "1732090903668"
},
"is_public": true,
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><i>Test</i> <b>Public</b> <u>Notification</u><br></div></div>",
"id": "100000000000052137",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"id": "100000000000052059",
"title": "General Announcement - Title >> 1"
}
}
}
Get Announcement Comment
This operation is used to get an announcement comment.
Url
<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}
Attributes
id (long)
Unique identifier of the announcement comment
comment (html)
Content of the announcement notification comment
is_public (boolean)
Indicates whether the comment notification shared to requesters or not
announcement (announcement)
Indicates the announcement to which the comment is associated
parent_comment (announcement_comment)
Represents the comment of the current reply.
created_by (user)read only
Indicates the technician who created the notification comment
More Attributes Expand all
$ curl -G <service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}\
-X GET\
-H "Accept: application/vnd.manageengine.sdp.v3+json"\
-H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
-H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
response = invokeurl
[
url: url
type: GET
headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
"Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
"Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
with urlopen(httprequest) as response:
print(response.read().decode())
except HTTPError as e:
print(e.read().decode())
{
"response_status": {
"status_code": 2000,
"status": "success"
},
"announcement_comment": {
"parent_comment": null,
"created_time": {
"display_value": "Nov 20, 2024 01:49 PM",
"value": "1732090780394"
},
"last_updated_time": {
"display_value": "Nov 20, 2024 01:51 PM",
"value": "1732090903668"
},
"is_public": true,
"comment": "<div class=\"personalize-wrapper\" style=\"font-family:"PT Sans", Arial, Helvetica, sans-serif, sans-serif; font-size:13px\"><div><i>Test</i> <b>Public</b> <u>Notification</u><br></div></div>",
"id": "100000000000052137",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"id": "100000000000052059",
"title": "General Announcement - Title >> 1"
}
}
}
Get List Announcement Comment
This operation is used to you get all announcement comments.
Url
<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments
Attributes
id (long)
Unique identifier of the announcement comment
comment (html)
Content of the announcement notification comment
is_public (boolean)
Indicates whether the comment notification shared to requesters or not
announcement (announcement)
Indicates the announcement to which the comment is associated
parent_comment (announcement_comment)
Represents the comment of the current reply.
created_by (user)read only
Indicates the technician who created the notification comment
More Attributes Expand all
$ curl -G <service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments\
-X GET\
-H "Accept: application/vnd.manageengine.sdp.v3+json"\
-H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
-H "Content-Type: application/x-www-form-urlencoded"\
--data-urlencode input_data='{
"list_info": {
"start_index": 1,
"row_count": 50,
"get_total_count": true,
"filter_by": "thread_view"
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
"list_info": {
"start_index": 1,
"row_count": 50,
"get_total_count": true,
"filter_by": "thread_view"
}
};
params = {"input_data":input_data};
response = invokeurl
[
url: url
type: GET
parameters:params
headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
"Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
"Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'{
"list_info": {
"start_index": 1,
"row_count": 50,
"get_total_count": true,
"filter_by": "thread_view"
}
}'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method get -Body $data -Headers $headers
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
"list_info": {
"start_index": 1,
"row_count": 50,
"get_total_count": true,
"filter_by": "thread_view"
}
}'''
url += "?" + urlencode({"input_data":input_data})
httprequest = Request(url, headers=headers)
try:
with urlopen(httprequest) as response:
print(response.read().decode())
except HTTPError as e:
print(e.read().decode())
{
"comments": [
{
"parent_comment": null,
"created_time": {
"display_value": "Nov 20, 2024 01:55 PM",
"value": "1732091159409"
},
"last_updated_time": null,
"is_public": false,
"comment": "Test Private Notification - 2",
"id": "100000000000052143",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"id": "100000000000052059",
"title": "General Announcement - Title >> 1"
}
},
{
"parent_comment": null,
"created_time": {
"display_value": "Nov 20, 2024 01:49 PM",
"value": "1732090780394"
},
"last_updated_time": {
"display_value": "Nov 20, 2024 01:54 PM",
"value": "1732091079931"
},
"is_public": true,
"comment": "Test Public Notification - 1",
"id": "100000000000052137",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"id": "100000000000052059",
"title": "General Announcement - Title >> 1"
}
},
{
"parent_comment": {
"id": "100000000000052137"
},
"created_time": {
"display_value": "Nov 20, 2024 01:54 PM",
"value": "1732091064396"
},
"last_updated_time": {
"display_value": "Nov 20, 2024 01:55 PM",
"value": "1732091139116"
},
"is_public": true,
"comment": "Test Public Reply Notifcation to Comment - 1",
"id": "100000000000052139",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"id": "100000000000052059",
"title": "General Announcement - Title >> 1"
}
},
{
"parent_comment": {
"id": "100000000000052137"
},
"created_time": {
"display_value": "Nov 20, 2024 01:55 PM",
"value": "1732091125967"
},
"last_updated_time": null,
"is_public": false,
"comment": "Test Private Reply Notification to Comment - 1",
"id": "100000000000052141",
"created_by": {
"email_id": "admin.mt@test.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": "M",
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "100000000000006792",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "admin",
"id": "100000000000040117",
"photo_url": "https://contacts.zoho.com/file?exp=10&ID=15646919&t=user&height=60&width=60",
"is_vip_user": false,
"department": null,
"first_name": "admin",
"job_title": null
},
"announcement": {
"id": "100000000000052059",
"title": "General Announcement - Title >> 1"
}
}
],
"response_status": [
{
"status_code": 2000,
"status": "success"
}
],
"list_info": {
"has_more_rows": false,
"start_index": 1,
"total_count": 4,
"filter_by": "thread_view",
"page": 1,
"get_total_count": "true",
"row_count": 4
}
}
Delete Announcement Comment
This operation is used to delete an announcement comment.
Url
<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}
$ curl <service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}\
-X DELETE\
-H "Accept: application/vnd.manageengine.sdp.v3+json"\
-H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
-H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
response = invokeurl
[
url: url
type: DELETE
headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
"Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
"Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method delete -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.request import urlopen,Request
url = "<service domain|custom domain>/app/<portal>/api/v3/announcements/{announcement_id}/comments/{comment_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers,method="DELETE")
try:
with urlopen(httprequest) as response:
print(response.read().decode())
except HTTPError as e:
print(e.read().decode())
{
"response_status": {
"status_code": 2000,
"status": "success"
}
}