跳转到内容

项目评论

允许成员/管理员分享他们对项目的看法以促进项目改进的评论。

属性

id (long)
项目评论的唯一标识符

id (long)
被视为较大数值的数字位数。

示例

234759602834500

project (project)read only
评论关联的项目

project (project)
指示与项目评论关联的项目

示例

{
  "project": {
    "display_id": {
      "display_value": "PJT-131",
      "value": "131"
    },
    "project_code": "test-project_code",
    "id": "2037672456177497",
    "title": "test-title"
  }
}

comment (html)
项目评论内容

comment (html)
HTML 是一个可以使用 html 元素的文本区域。

示例

<b>The content to be displayed</b>

parent_comment (project_comment)
表示当前回复的评论。

parent_comment (project_comment)
表示当前回复的评论。

示例

{
  "parent_comment": {
    "comment": "this is project comment",
    "id": "3304000001245275"
  }
}

created_by (user)read only
创建评论的用户

created_by (user)
指示创建评论的用户

示例

{
  "created_by": {
    "email_id": "andrews@zmail.com",
    "name": "test-created_by",
    "id": "234567890123456"
  }
}

created_time (datetime)read only
评论创建的时间

created_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

更多属性 全部展开

last_updated_time (datetime)read only

表示评论/回复的最后修改时间。

last_updated_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

添加项目评论

此操作帮助您添加项目评论。

必填字段:- project,comment

Url

<service domain|custom domain>/app/<portal>/api/v3/projects/{project_id}/comments

属性

id (long)
项目评论的唯一标识符

id (long)
被视为较大数值的数字位数。

示例

234759602834500

project (project)read only
评论关联的项目

project (project)
指示与项目评论关联的项目

示例

{
  "project": {
    "display_id": {
      "display_value": "PJT-131",
      "value": "131"
    },
    "project_code": "test-project_code",
    "id": "2037672456177497",
    "title": "test-title"
  }
}

comment (html)
项目评论内容

comment (html)
HTML 是一个可以使用 html 元素的文本区域。

示例

<b>The content to be displayed</b>

parent_comment (project_comment)
表示当前回复的评论。

parent_comment (project_comment)
表示当前回复的评论。

示例

{
  "parent_comment": {
    "comment": "this is project comment",
    "id": "3304000001245275"
  }
}

created_by (user)read only
创建评论的用户

created_by (user)
指示创建评论的用户

示例

{
  "created_by": {
    "email_id": "andrews@zmail.com",
    "name": "test-created_by",
    "id": "234567890123456"
  }
}

created_time (datetime)read only
评论创建的时间

created_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

更多属性 全部展开

last_updated_time (datetime)read only

表示评论/回复的最后修改时间。

last_updated_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

$ curl <service domain|custom domain>/app/<portal>/api/v3/projects/{project_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='{"project_comment": {"comment": "this is project comment"}}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/projects/{project_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 = {"project_comment": {"comment": "this is project comment"}};
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/projects/{project_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 = @'
{"project_comment": {"comment": "this is project comment"}}
'@
$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/projects/{project_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 = '''{"project_comment": {"comment": "this is project comment"}}'''
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())
{
    "project_comment": {
        "parent_comment": null,
        "created_time": {
            "display_value": "Jun 2, 2021 11:29 AM",
            "value": "1622613599741"
        },
        "last_updated_time": null,
        "project": {
            "display_id": {
                "display_value": "PJT-27",
                "value": "27"
            },
            "project_code": null,
            "id": "3304000001245001",
            "title": "Project Title"
        },
        "comment": "this is project comment",
        "id": "3304000001245301",
        "created_by": {
            "email_id": "vignesh.b+local@zohocorp.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": null,
            "user_scope": "0",
            "phone": null,
            "name": "Vignesh B",
            "id": "3304000000113318",
            "photo_url": "https://contacts.zoho.com/file?exp=10&ID=58663403&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "Vignesh",
            "job_title": null
        }
    },
    "response_status": {
        "status_code": 2000,
        "status": "success"
    }
}

编辑项目评论

此操作帮助您更新项目评论。

Url

<service domain|custom domain>/app/<portal>/api/v3/projects/{project_id}/comments/{comment_id}

属性

id (long)
项目评论的唯一标识符

id (long)
被视为较大数值的数字位数。

示例

234759602834500

project (project)read only
评论关联的项目

project (project)
指示与项目评论关联的项目

示例

{
  "project": {
    "display_id": {
      "display_value": "PJT-131",
      "value": "131"
    },
    "project_code": "test-project_code",
    "id": "2037672456177497",
    "title": "test-title"
  }
}

comment (html)
项目评论内容

comment (html)
HTML 是一个可以使用 html 元素的文本区域。

示例

<b>The content to be displayed</b>

parent_comment (project_comment)
表示当前回复的评论。

parent_comment (project_comment)
表示当前回复的评论。

示例

{
  "parent_comment": {
    "comment": "this is project comment",
    "id": "3304000001245275"
  }
}

created_by (user)read only
创建评论的用户

created_by (user)
指示创建评论的用户

示例

{
  "created_by": {
    "email_id": "andrews@zmail.com",
    "name": "test-created_by",
    "id": "234567890123456"
  }
}

created_time (datetime)read only
评论创建的时间

created_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

更多属性 全部展开

last_updated_time (datetime)read only

表示评论/回复的最后修改时间。

last_updated_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

$ curl <service domain|custom domain>/app/<portal>/api/v3/projects/{project_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='{"project_comment": {"comment": "this is comment edited"}}
'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/projects/{project_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 = {"project_comment": {"comment": "this is comment edited"}}
;
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/projects/{project_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 = @'
{"project_comment": {"comment": "this is comment edited"}}

'@
$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/projects/{project_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 = '''{"project_comment": {"comment": "this is comment edited"}}
'''
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())
{
    "project_comment": {
        "parent_comment": null,
        "created_time": {
            "display_value": "Jun 2, 2021 11:25 AM",
            "value": "1622613341580"
        },
        "last_updated_time": {
            "display_value": "Jun 2, 2021 11:59 AM",
            "value": "1622615340877"
        },
        "project": {
            "display_id": {
                "display_value": "PJT-27",
                "value": "27"
            },
            "project_code": null,
            "id": "3304000001245001",
            "title": "Project Title"
        },
        "comment": "<div>this is project comment edited<br></div>",
        "id": "3304000001245275",
        "created_by": {
            "email_id": "user@zohocorp.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": null,
            "user_scope": "0",
            "phone": null,
            "name": "User Name",
            "id": "3304000000113318",
            "photo_url": "https://contacts.zoho.com/file?exp=10&ID=58663403&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "Vignesh",
            "job_title": null
        }
    },
    "response_status": {
        "status_code": 2000,
        "status": "success"
    }
}

获取项目评论

此操作帮助您获取项目评论。

Url

<service domain|custom domain>/app/<portal>/api/v3/projects/{project_id}/comments/{comment_id}

属性

id (long)
项目评论的唯一标识符

id (long)
被视为较大数值的数字位数。

示例

234759602834500

project (project)read only
评论关联的项目

project (project)
指示与项目评论关联的项目

示例

{
  "project": {
    "display_id": {
      "display_value": "PJT-131",
      "value": "131"
    },
    "project_code": "test-project_code",
    "id": "2037672456177497",
    "title": "test-title"
  }
}

comment (html)
项目评论内容

comment (html)
HTML 是一个可以使用 html 元素的文本区域。

示例

<b>The content to be displayed</b>

parent_comment (project_comment)
表示当前回复的评论。

parent_comment (project_comment)
表示当前回复的评论。

示例

{
  "parent_comment": {
    "comment": "this is project comment",
    "id": "3304000001245275"
  }
}

created_by (user)read only
创建评论的用户

created_by (user)
指示创建评论的用户

示例

{
  "created_by": {
    "email_id": "andrews@zmail.com",
    "name": "test-created_by",
    "id": "234567890123456"
  }
}

created_time (datetime)read only
评论创建的时间

created_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

更多属性 全部展开

last_updated_time (datetime)read only

表示评论/回复的最后修改时间。

last_updated_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/projects/{project_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/projects/{project_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/projects/{project_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/projects/{project_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())
{
  "project_comment": {
    "parent_comment": {
      "comment": "this is project comment",
      "id": "3304000001245275"
    },
    "created_time": {
      "display_value": "Jun 2, 2021 11:44 AM",
      "value": "1622614479264"
    },
    "last_updated_time": null,
    "project": {
      "display_id": {
        "display_value": "PJT-27",
        "value": "27"
      },
      "project_code": null,
      "id": "3304000001245001",
      "title": "Project Title"
    },
    "comment": "<div>This is reply<br></div>",
    "id": "3304000001246001",
    "created_by": {
            "email_id": "user@zohocorp.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": null,
            "user_scope": "0",
            "phone": null,
            "name": "User Name",
            "id": "3304000000113318",
            "photo_url": "https://contacts.zoho.com/file?exp=10&ID=58663403&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "User",
            "job_title": null
        }
  },
  "response_status": {
    "status_code": 2000,
    "status": "success"
  }
}

获取项目评论列表

此操作帮助您获取所有项目评论。

Url

<service domain|custom domain>/app/<portal>/api/v3/projects/{project_id}/comments

属性

id (long)
项目评论的唯一标识符

id (long)
被视为较大数值的数字位数。

示例

234759602834500

project (project)read only
评论关联的项目

project (project)
指示与项目评论关联的项目

示例

{
  "project": {
    "display_id": {
      "display_value": "PJT-131",
      "value": "131"
    },
    "project_code": "test-project_code",
    "id": "2037672456177497",
    "title": "test-title"
  }
}

comment (html)
项目评论内容

comment (html)
HTML 是一个可以使用 html 元素的文本区域。

示例

<b>The content to be displayed</b>

parent_comment (project_comment)
表示当前回复的评论。

parent_comment (project_comment)
表示当前回复的评论。

示例

{
  "parent_comment": {
    "comment": "this is project comment",
    "id": "3304000001245275"
  }
}

created_by (user)read only
创建评论的用户

created_by (user)
指示创建评论的用户

示例

{
  "created_by": {
    "email_id": "andrews@zmail.com",
    "name": "test-created_by",
    "id": "234567890123456"
  }
}

created_time (datetime)read only
评论创建的时间

created_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

更多属性 全部展开

last_updated_time (datetime)read only

表示评论/回复的最后修改时间。

last_updated_time (datetime)
以 JSON 对象表示日期/时间。包含 value 和 display_value 属性。

value :以长格式表示的时间(从 1970 年 1 月 1 日起的毫秒数)。

display_value :以用户个性化格式或默认格式显示的时间的可读形式。

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/projects/{project_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='{}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/projects/{project_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 = {};
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/projects/{project_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 = @'{}'@
$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/projects/{project_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 = '''{}'''       
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": "Jun 2, 2021 11:25 AM",
        "value": "1622613341580"
      },
      "last_updated_time": null,
      "project": {
        "display_id": {
          "display_value": "PJT-27",
          "value": "27"
        },
        "project_code": null,
        "id": "3304000001245001",
        "title": "Project Title"
      },
      "comment": "this is project comment",
      "id": "3304000001245275",
      "created_by": {
            "email_id": "user@zohocorp.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": null,
            "user_scope": "0",
            "phone": null,
            "name": "User Name",
            "id": "3304000000113318",
            "photo_url": "https://contacts.zoho.com/file?exp=10&ID=58663403&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "User",
            "job_title": null
        }
    },
    {
      "parent_comment": {
        "id": "3304000001245275"
      },
      "created_time": {
        "display_value": "Jun 2, 2021 11:44 AM",
        "value": "1622614479264"
      },
      "last_updated_time": null,
      "project": {
        "display_id": {
          "display_value": "PJT-27",
          "value": "27"
        },
        "project_code": null,
        "id": "3304000001245001",
        "title": "Project Title"
      },
      "comment": "This is reply",
      "id": "3304000001246001",
      "created_by": {
            "email_id": "user@zohocorp.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": null,
            "user_scope": "0",
            "phone": null,
            "name": "User Name",
            "id": "3304000000113318",
            "photo_url": "https://contacts.localzoho.com/file?exp=10&ID=58663403&t=user&height=60&width=60",
            "is_vip_user": false,
            "department": null,
            "first_name": "User",
            "job_title": null
        }
    }
  ],
  "response_status": [
    {
      "status_code": 2000,
      "status": "success"
    }
  ],
  "list_info": {
    "has_more_rows": false,
    "row_count": 2
  }
}

删除项目评论

此操作帮助您删除项目评论。

Url

<service domain|custom domain>/app/<portal>/api/v3/projects/{project_id}/comments/{comment_id}

$ curl <service domain|custom domain>/app/<portal>/api/v3/projects/{project_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/projects/{project_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/projects/{project_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/projects/{project_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"
  }
}