SOLVED

ReST API Task Duration field contains unknown unit t

Contributor

Hello Everyone,

 

I'm trying to make a GET request for fetching all tasks for a particular project. But the task Duration field in an XML response I received contains unknown unit 't' instead of 'h' (hours). In the Project Online, it is in hours. 

Duration.png

 

I'm making a ReST API request through a C# application.

Please note that I've also tried the same in the browser but the result is same.

Does anyone has any idea about this issue?

 

Thanks & Regards,

Rohan

1 Reply
best response confirmed by Dale Howard (MVP)
Solution
Issue has been solved. Machine locale was different. So sent "Accept-Language" http header along with GET request.