update date for worklog through API

Hi!

curl -i -u mylogin:mypassword -H "Content-Type: application/json" -X PUT 'https://yandexddd.atlassian.net/rest/api/2/issue/DEMO-10/worklog/10204.json' --data "{\"started\":\"2013-02-14\"}"

But server respond:

HTTP/1.1 500 Internal Server Error

Server: nginx

Date: Mon, 08 Apr 2013 13:42:49 GMT

Content-Type: application/json;charset=UTF-8

Connection: keep-alive

X-AREQUESTID: 1062x1633x1

Set-Cookie: JSESSIONID=BD4AB63B109K7FB4C081D680D7FFDE54; Path=/; HttpOnly

Set-Cookie: studio.crowd.tokenkey=""; Domain=.yandexddd.atlassian.net; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly

X-Seraph-LoginReason: OUT

Set-Cookie: studio.crowd.tokenkey=GZu8iYxh2cg8PwrP5n5frQ00; Domain=.yandexddd.atlassian.net; Path=/; HttpOnly

X-Seraph-LoginReason: OK

Set-Cookie: atlassian.xsrf.token=BHE6-NF4J-4AJA-1MEO|d8dffafe8728e824a2fe4e631b647124faeb1690|lin; Path=/

X-ASESSIONID: 1u1gje4

X-AUSERNAME: dimanlin

Cache-Control: no-cache, no-store, no-transform

Content-Length: 55

Vary: Accept-Encoding


{"errorMessages":["Internal server error"],"errors":{}}

1 answer

0 vote
Pedro Cora Atlassian Team Apr 08, 2013

Dmitry,

Check the REST docs for the correct URL to be called: http://docs.atlassian.com/jira/REST/latest/#id170555

Cheers,

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Thursday in Off-topic

Friday Fun: Magic Eyes

...staring into the background. Once the image pops out in 3D, you can look around the picture and enjoy. If you will see if you are a true illusion master! :) You did it? :) Wow! Awesome! As a bonus...

418 views 79 11
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you