<service domain|custom domain>/app/<portal>/api/v3/releases/{release_id}/worklogs
Release Worklog
This API helps you to track and record the work done by a team member for the release module
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)
Contains 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 date and time of creation 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
mark_first_response (boolean)
Indicates whether to mark response date of a Request/ticket while adding worklog for that request/ticket
Add Release Worklog
This operation helps to add a release worklog
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)
Contains 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 date and time of creation 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
mark_first_response (boolean)
Indicates whether to mark response date of a Request/ticket while adding worklog for that request/ticket
$ curl <service domain|custom domain>/app/<portal>/api/v3/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"mark_first_response": false
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"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/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"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/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"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": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"include_nonoperational_hours": true,
"exchange_rate": "1",
"end_time": {
"display_value": "Apr 24, 2025 09:15 AM",
"value": "1745466355256"
},
"description": "Added worklog",
"other_charge": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12,
"secondary_currency": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12
}
},
"total_charge": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132,
"secondary_currency": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132
}
},
"created_by": {
"email_id": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"recorded_time": {
"display_value": "Apr 24, 2025 09:16 AM",
"value": "1745466374289"
},
"time_spent": {
"hours": "12",
"minutes": "0",
"value": "43200000"
},
"tech_charge": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120,
"secondary_currency": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120
}
},
"start_time": {
"display_value": "Apr 23, 2025 09:15 PM",
"value": "1745423155256"
},
"worklog_type": null,
"currency": {
"symbol": "$",
"code": "USD",
"deleted": false,
"exchange_rate": "1",
"name": "US Dollar",
"id": "2000000004427"
},
"id": "200000005987"
}
}
Edit Release Worklog
This operation helps to update a release worklog
Url
<service domain|custom domain>/app/<portal>/api/v3/releases/{release_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)
Contains 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 date and time of creation 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
mark_first_response (boolean)
Indicates whether to mark response date of a Request/ticket while adding worklog for that request/ticket
$ curl <service domain|custom domain>/app/<portal>/api/v3/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"mark_first_response": false
}
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"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/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"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/releases/{release_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": {
"end_time": {
"value": 1745466355256
},
"other_charge": {
"secondary_currency": {
"value": "12"
},
"value": "12"
},
"tech_charge": {
"secondary_currency": {
"value": "120"
},
"value": "120"
},
"include_nonoperational_hours": true,
"owner": {
"id": "2000000040351"
},
"currency": {
"id": "2000000004427"
},
"start_time": {
"value": 1745423155256
},
"time_spent": {
"hours": "12",
"minutes": "0"
},
"exchange_rate": 1,
"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": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"include_nonoperational_hours": true,
"exchange_rate": "1",
"end_time": {
"display_value": "Apr 24, 2025 09:15 AM",
"value": "1745466355256"
},
"description": "Added worklog",
"other_charge": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12,
"secondary_currency": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12
}
},
"total_charge": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132,
"secondary_currency": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132
}
},
"created_by": {
"email_id": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"recorded_time": {
"display_value": "Apr 24, 2025 09:16 AM",
"value": "1745466374289"
},
"time_spent": {
"hours": "12",
"minutes": "0",
"value": "43200000"
},
"tech_charge": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120,
"secondary_currency": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120
}
},
"start_time": {
"display_value": "Apr 23, 2025 09:15 PM",
"value": "1745423155256"
},
"worklog_type": null,
"currency": {
"symbol": "$",
"code": "USD",
"deleted": false,
"exchange_rate": "1",
"name": "US Dollar",
"id": "2000000004427"
},
"id": "200000005987"
}
}
Get Release Worklog
This operation helps to get a release worklog
Url
<service domain|custom domain>/app/<portal>/api/v3/releases/{release_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)
Contains 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 date and time of creation 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
mark_first_response (boolean)
Indicates whether to mark response date of a Request/ticket while adding worklog for that request/ticket
$ curl -G <service domain|custom domain>/app/<portal>/api/v3/releases/{release_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/releases/{release_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/releases/{release_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/releases/{release_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": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"include_nonoperational_hours": true,
"exchange_rate": "1",
"end_time": {
"display_value": "Apr 24, 2025 09:15 AM",
"value": "1745466355256"
},
"description": "Added worklog",
"other_charge": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12,
"secondary_currency": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12
}
},
"total_charge": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132,
"secondary_currency": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132
}
},
"created_by": {
"email_id": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"recorded_time": {
"display_value": "Apr 24, 2025 09:16 AM",
"value": "1745466374289"
},
"time_spent": {
"hours": "12",
"minutes": "0",
"value": "43200000"
},
"tech_charge": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120,
"secondary_currency": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120
}
},
"start_time": {
"display_value": "Apr 23, 2025 09:15 PM",
"value": "1745423155256"
},
"worklog_type": null,
"currency": {
"symbol": "$",
"code": "USD",
"deleted": false,
"exchange_rate": "1",
"name": "US Dollar",
"id": "2000000004427"
},
"id": "200000005987"
}
}
Get List Release Worklog
This operation helps to get all release worklogs
Url
<service domain|custom domain>/app/<portal>/api/v3/releases/{release_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)
Contains 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 date and time of creation 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
mark_first_response (boolean)
Indicates whether to mark response date of a Request/ticket while adding worklog for that request/ticket
$ curl -G <service domain|custom domain>/app/<portal>/api/v3/releases/{release_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/releases/{release_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/releases/{release_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/releases/{release_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": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10.0",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"include_nonoperational_hours": true,
"exchange_rate": "1",
"end_time": {
"display_value": "Apr 24, 2025 09:15 AM",
"value": "1745466355256"
},
"description": "Added worklog",
"other_charge": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12,
"secondary_currency": {
"display_value": "12.00",
"currency_symbol": "$",
"value": 12
}
},
"total_charge": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132,
"secondary_currency": {
"display_value": "132.00",
"currency_symbol": "$",
"value": 132
}
},
"created_by": {
"email_id": "test@zoho.com",
"is_technician": true,
"sms_mail": null,
"mobile": "1234567890",
"last_name": null,
"user_scope": "internal_user",
"sms_mail_id": null,
"cost_per_hour": "10",
"site": {
"deleted": false,
"name": "Base Site",
"id": "2000000040132",
"is_default": true
},
"phone": "22",
"employee_id": null,
"name": "Maverick",
"id": "2000000040351",
"is_vip_user": false,
"department": null,
"first_name": "Maverick",
"job_title": null
},
"recorded_time": {
"display_value": "Apr 24, 2025 09:16 AM",
"value": "1745466374289"
},
"time_spent": {
"hours": "12",
"minutes": "0",
"value": "43200000"
},
"tech_charge": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120,
"secondary_currency": {
"display_value": "120.00",
"currency_symbol": "$",
"value": 120
}
},
"start_time": {
"display_value": "Apr 23, 2025 09:15 PM",
"value": "1745423155256"
},
"worklog_type": null,
"currency": {
"symbol": "$",
"code": "USD",
"deleted": false,
"exchange_rate": "1",
"name": "US Dollar",
"id": "2000000004427"
},
"id": "200000005987"
}
]
}
Delete Release Worklog
This operation helps to delete a release worklog
Url
<service domain|custom domain>/app/<portal>/api/v3/releases/{release_id}/worklogs/{worklog_id}
$ curl <service domain|custom domain>/app/<portal>/api/v3/releases/{release_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/releases/{release_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/releases/{release_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/releases/{release_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"
}
}