Editing a worklog through REST API

Editing a worklog through REST API

I am trying to edit a worklog (to update the hours/minutes on the worklog and the description) through the REST API, but the response I always get is:

<operation name="PUT"><result><status>Failed</status><message>Invalid operation</message></result></operation>

I have tried using the html/APICall.html to speed up my testing, but can't get it to work.

The details are below:

Method: PUT
Format: XML
Parameters: INPUT_DATA=<operation><details><worklogs><worklog><description>LPTIMELOGID--1711149--
Test 5</description><workhours>0</workhours><workminutes>6</workminutes></worklog></worklogs></details></operation>

What am I doing wrong?

Also, are the any better examples for API calls?


                New to ADSelfService Plus?