I’m using the reports
endpoint (detailed) and am seeing a different format for dates (“Start Date” and “End Date”) when I switch between exportType
s.
Here’s my curl
:
curl \
--silent \
--header "content-type: application/json" \
--header "X-Api-Key: $api_key" \
--data "
{
\"dateRangeStart\": \"${start_date}T00:00:00.000Z\",
\"dateRangeEnd\": \"${end_date}T12:59:59.000Z\",
\"detailedFilter\": {
\"page\": 1,
\"pageSize\": 1
},
\"exportType\": \"CSV\"
}
" \
https://reports.api.clockify.me/v1/workspaces/${workspace_id}/reports/detailed
When the format is CSV
the dates are in YYYY-DD-MM
format but when the format is JSON
the dates are in YYYY-MM-DD
format (desirable).