Hi there. I am trying to get the following post body to get a report exactly like the image and following the parameters: Project is = to “Hiring” or “Onboarding” and Client is =“Client1”
Please please, if someone can assist with this it would be so helpful. I’m such a beginner at API and have been trying by trial and error for days now.
Are you trying to request a detailed report for Jan 22nd filtered by client and project?
If this is the case, first you need to add your API key to the headers, as well as the “content-type: application/JSON”.
The URL for a detailed report is - https://reports.api.clockify.me/v1/workspaces/{YourWorkspaceId}/reports/detailed and the method is POST.
In addition to this, please see the below body part:
{
“dateRangeStart”: “2022-01-22T00:00:00.000”,
“dateRangeEnd”: “2022-01-22T23:59:59.000”,
“detailedFilter”: {
“page”: 1,
“pageSize”: 50
},
“exportType”: “CSV”,
“clients”: {
“ids”: [“YourClientId”],
“contains”: “CONTAINS”,
“status”: “ALL”
},
“projects”: {
“ids”: [“yourProjectId”],
“contains”: “CONTAINS”,
“status”: “ALL”
}
}
If this is not what you were referring to, please let us know.
Thank you for your screenshot as it helps a lot in this case. Kindly note that it is not possible to use summary filter options when trying to pull a detailed report.
This being said, please note that there are some required body parts for the detailed report: