Hello,
We would like to implement time report automation tool and download the time export using plain http client like curl, but I was not able to put together request URL which would work correctly using TimeExport function as documented here:
https://tfstimetracker.timehub.7pace.com/apireference/index#/TimeEntryExport
According to ODATA uri conventions for version 2 (https://www.odata.org/documentation/odata-version-2-0/uri-conventions/) I tried the following command:
curl -H "${AUTH}" "https://${ORG}.timehub.7pace.com/api/odata/TimeExport?api-version=2.1&StartDate=%272021-01-01%27&EndDate=%272021-01-31%27&PopulateTopParentColumns=true&GroupTimeByDateByUser=true&IncludeBillable=false"
and also some other variants, but the response was always the following:
{"statusCode":404,"errorCode":"NotFound","errorDescription":"Resource not found"}
REST API endpoints and also ODATA v3 endpoints are working as expected using same authorization header.
Could you please help ?
-
Hello Pavel,
Thank you for reaching out to us.
Can you please try to run this command:curl -H "${AUTH}" "https://${ORG}.timehub.7pace.com/api/odata/TimeExport(StartDate=%272021-01-01%27,EndDate=%272021-01-31%27,PopulateTopParentColumns=true,GroupTimeByDateByUser=true,IncludeBillable=false)?api-version=2.1
Best regards,
Alexander
Please sign in to leave a comment.
Comments
2 comments