Post

2 followers Follow
0
Avatar

PUT timesheet - internal server error

https://apie.clarizentb.com/V2.0/services/data/objects/timesheet

httpWebRequest.Method = "PUT"

{"workitem":"/Task/5l67u2atthj1gv5h1n3k8l4da2850","reportedby":"/User/304f42d5-97bd-4dd9-b917-30be9788dc93","duration":"6h","reportedDate":"2021-04-28","comment":"some comment"}

the timesheet is added

but the response is:
'The remote server returned an error: (500) Internal Server Error.'


Rivka Altshuler Answered

Please sign in to leave a comment.

3 comments

0
Avatar

Hello Rivka,

Please try changing "Duration": "6h" to "Duration": {"unit": "Hours", "value": 6}

I hope this helps.

Roland

Roland Pumputis 0 votes
Comment actions Permalink
0
Avatar

The same response also with this request

{"workitem":"/Task/28994vnrq0cn3vfb9m2v8ez993010","reportedby":"/User/7df36c82-41d4-445a-99a0-3851aee51149","duration":{"unit":"Hours","value":6},"reportedDate":"2021-05-04","comment":"some comment"}

Rivka Altshuler 0 votes
Comment actions Permalink