<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs
Problem Task Worklog
This API helps you to track and record the work done by a team member.
Attributes
id (long)
Indicates the unique ID of the worklog
owner (user)
Indicates the owner for the worklog
description (html)
Contains the description about the worklog
start_time (datetime)
Indicates the start date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
end_time (datetime)
Contains the end date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
recorded_time (datetime)
Contains the creation date and time of the Worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
More Attributes Expand all
Add Problem Task Worklog
This operation helps you to add a worklog for a problem task.
Mandatory Fields :- owner
Url
Attributes
id (long)
Indicates the unique ID of the worklog
owner (user)
Indicates the owner for the worklog
description (html)
Contains the description about the worklog
start_time (datetime)
Indicates the start date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
end_time (datetime)
Contains the end date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
recorded_time (datetime)
Contains the creation date and time of the Worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
More Attributes Expand all
$ curl <service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs\
-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='{
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task Worklog</div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675335376826"
},
"time_spent": {
"hours": "24",
"minutes": 0
},
"tech_charge": "500",
"other_charge": "300",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": false
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task Worklog</div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675335376826"
},
"time_spent": {
"hours": "24",
"minutes": 0
},
"tech_charge": "500",
"other_charge": "300",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": 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/problems/{problem_id}/tasks/{task_id}/worklogs"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
"Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
"Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task Worklog</div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675335376826"
},
"time_spent": {
"hours": "24",
"minutes": 0
},
"tech_charge": "500",
"other_charge": "300",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": 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/problems/{problem_id}/tasks/{task_id}/worklogs"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task Worklog</div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675335376826"
},
"time_spent": {
"hours": "24",
"minutes": 0
},
"tech_charge": "500",
"other_charge": "300",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": 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"
},
"worklog": {
"owner": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"include_nonoperational_hours": true,
"end_time": {
"display_value": "Feb 2, 2023 04:26 PM",
"value": "1675335376826"
},
"description": "<div>Task Worklog<\/div>",
"other_charge": "300",
"total_charge": "800",
"created_by": {
"email_id": "johnl@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"recorded_time": {
"display_value": "Feb 2, 2023 04:26 PM",
"value": "1675335398101"
},
"time_spent": {
"hours": "24",
"minutes": "00",
"value": "86400000"
},
"tech_charge": "500",
"start_time": {
"display_value": "Feb 1, 2023 04:26 PM",
"value": "1675248976826"
},
"worklog_type": null,
"id": "4149000001306007"
}
}
Edit Problem Task Worklog
This operation helps you to update a worklog for a problem task.
Url
<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_id}
Attributes
id (long)
Indicates the unique ID of the worklog
owner (user)
Indicates the owner for the worklog
description (html)
Contains the description about the worklog
start_time (datetime)
Indicates the start date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
end_time (datetime)
Contains the end date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
recorded_time (datetime)
Contains the creation date and time of the Worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
More Attributes Expand all
$ curl <service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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='{
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task+Worklog<br></div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675436176826"
},
"time_spent": {
"hours": "52",
"minutes": "00"
},
"tech_charge": "5000",
"other_charge": "600",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": false
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
"Content-Type": "application/x-www-form-urlencoded",
"Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task+Worklog<br></div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675436176826"
},
"time_spent": {
"hours": "52",
"minutes": "00"
},
"tech_charge": "5000",
"other_charge": "600",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": false
}
};
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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_id}"
$headers = @{"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
$input_data = @'
{
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task+Worklog<br></div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675436176826"
},
"time_spent": {
"hours": "52",
"minutes": "00"
},
"tech_charge": "5000",
"other_charge": "600",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": false
}
}
'@
$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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json",
"Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx",
"Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
"worklog": {
"owner": {
"id": "4149000000871029"
},
"description": "<div>Task+Worklog<br></div>",
"start_time": {
"value": "1675248976826"
},
"end_time": {
"value": "1675436176826"
},
"time_spent": {
"hours": "52",
"minutes": "00"
},
"tech_charge": "5000",
"other_charge": "600",
"worklog_type": null,
"include_nonoperational_hours": true,
"mark_first_response": false
}
}'''
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"
},
"worklog": {
"owner": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"include_nonoperational_hours": true,
"end_time": {
"display_value": "Feb 3, 2023 08:26 PM",
"value": "1675436176826"
},
"description": "<div>Task Worklog<\/div>",
"other_charge": "600",
"total_charge": "5600",
"created_by": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"recorded_time": {
"display_value": "Feb 2, 2023 04:26 PM",
"value": "1675335398101"
},
"time_spent": {
"hours": "52",
"minutes": "00",
"value": "187200000"
},
"tech_charge": "5000",
"start_time": {
"display_value": "Feb 1, 2023 04:26 PM",
"value": "1675248976826"
},
"worklog_type": null,
"id": "4149000001306007"
}
}
Get Problem Task Worklog
This operation helps you to get a worklog for a problem task.
Url
<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_id}
Attributes
id (long)
Indicates the unique ID of the worklog
owner (user)
Indicates the owner for the worklog
description (html)
Contains the description about the worklog
start_time (datetime)
Indicates the start date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
end_time (datetime)
Contains the end date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
recorded_time (datetime)
Contains the creation date and time of the Worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
More Attributes Expand all
$ curl -G <service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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"
},
"worklog": {
"owner": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "0.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"include_nonoperational_hours": true,
"end_time": {
"display_value": "Feb 3, 2023 08:26 PM",
"value": "1675436176826"
},
"description": "<div>Task Worklog<\/div>",
"other_charge": "600",
"total_charge": "5600",
"created_by": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"recorded_time": {
"display_value": "Feb 2, 2023 04:26 PM",
"value": "1675335398101"
},
"time_spent": {
"hours": "52",
"minutes": "00",
"value": "187200000"
},
"tech_charge": "5000",
"start_time": {
"display_value": "Feb 1, 2023 04:26 PM",
"value": "1675248976826"
},
"worklog_type": null,
"id": "4149000001306007"
}
}
Get List Problem Task Worklog
This operation helps you to get all worklogs for problem task.
Url
<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs
Attributes
id (long)
Indicates the unique ID of the worklog
owner (user)
Indicates the owner for the worklog
description (html)
Contains the description about the worklog
start_time (datetime)
Indicates the start date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
end_time (datetime)
Contains the end date and time of the worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
recorded_time (datetime)
Contains the creation date and time of the Worklog as a JSON Object and has the ‘value’ in milliseconds and ‘display_value’ in the standard date format
More Attributes Expand all
$ curl -G <service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs\
-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/problems/{problem_id}/tasks/{task_id}/worklogs";
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/problems/{problem_id}/tasks/{task_id}/worklogs"
$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/problems/{problem_id}/tasks/{task_id}/worklogs"
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())
{
"response_status": [
{
"status_code": 2000,
"status": "success"
}
],
"list_info": {
"has_more_rows": false,
"row_count": 1
},
"worklogs": [
{
"owner": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"include_nonoperational_hours": true,
"end_time": {
"display_value": "Feb 3, 2023 08:26 PM",
"value": "1675436176826"
},
"description": "Task Worklog",
"other_charge": "600",
"total_charge": "5600",
"created_by": {
"email_id": "john@zylker.com",
"is_technician": true,
"sms_mail": null,
"mobile": null,
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"site": {
"deleted": false,
"name": "Base Site",
"id": "4149000001242001",
"is_default": true
},
"phone": null,
"employee_id": null,
"name": "John",
"id": "4149000000871029",
"photo_url": "https://contacts.localzoho.com/file?sample",
"is_vip_user": false,
"department": null,
"first_name": "John",
"job_title": null
},
"recorded_time": {
"display_value": "Feb 2, 2023 04:26 PM",
"value": "1675335398101"
},
"time_spent": {
"hours": "52",
"minutes": "00",
"value": "187200000"
},
"tech_charge": "5000",
"start_time": {
"display_value": "Feb 1, 2023 04:26 PM",
"value": "1675248976826"
},
"worklog_type": null,
"id": "4149000001306007"
}
]
}
Delete Problem Task Worklog
This operation helps you to delete a worklog for a problem task.
Url
<service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_id}
$ curl <service domain|custom domain>/app/<portal>/api/v3/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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/problems/{problem_id}/tasks/{task_id}/worklogs/{worklog_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"
}
}