Edit a Work log in a request
URL
https://sdpondemand.manageengine.com/api/json/request/REQUEST_ID/worklogs/WORKLOGID
Method
HTTP POST
API description
Edits the worklog in a request in the ServiceDesk Plus On-Demand application
Parameters to be passed
authtoken, scope, OPERATION_NAME (value is EDIT_WORKLOG) and INPUT_DATA
Sample INPUT_DATA:
{
"operation": {
"Details": {
"TECHNICIAN": "Chris Cullen",
"WORKHOURS": "2",
"WORKMINUTES": "20",
"DESCRIPTION" : "Test"
"EXECUTEDTIME" : "1458122438987"
"TECH_CHARGE" : "100"
"OTHER_CHARGE" : "100"
}
}
}
Sample Request:
curl -d "authtoken=860608382173c3a027f8e1273fb22101&OPERATION_NAME=EDIT_WORKLOG&scope=sdpodapi&
INPUT_DATA={operation:{Details:{TECHNICIAN:Chris Cullen, TECHNICIANEMAIL:Chris.Cullen@zohocorp.com,
WORKHOURS:2, WORKMINUTES:20, COST:40, DESCRIPTION:Test}}}"
https://sdpondemand.manageengine.com/api/json/request/10/worklogs/2000000124193
Sample Response:
{
"operation": {
"name": "EDIT_WORKLOG",
"result": {
"status": "Success",
"message": "WorkLog 2000000124193 successfully edited for request 10"
}
}
}