Please provide a detailed filter

Been struggling with this python api post I am trying to do. All I am trying to do is post every users time entry to a json file. I have looked at the api documentation and I feel I am so close! I am stuck with the error “{‘code’: 501, ‘message’: ‘Please provide detailed filter.’}”

Here is the code!

urlReport = 'https://reports.api.clockify.me/v1'
key = 'HIDDEN FOR PRIVACY :)'
workspaceId = '607f2add2364bf68ded096eb'
response = requests.post(
    f'{urlReport}/workspaces/{workspaceId}/reports/detailed', headers={'X-Api-Key': key})
print(response.status_code)
print(response.json())

You need to pass the request payload into the the post method.

urlReport = 'https://reports.api.clockify.me/v1'
key = 'HIDDEN FOR PRIVACY :)'
request_payload = {'dateRangeStart': '2021-01-01T00:00:00.000Z', 'dateRangeEnd': '2021-12-31T23:59:59.999Z',
        'sortOrder': 'DESCENDING', 'description': '', 'rounding': False, 'withoutDescription': False,
        'amountShown': 'EARNED', 'zoomLevel': 'YEAR', 'userLocale': 'en_US', 'customFields': None,
        'detailedFilter': {'sortColumn': 'DATE', 'page': 1, 'pageSize': 200, 'auditFilter': None,
                           'quickbooksSelectType': 'ALL'}}
workspaceId = '607f2add2364bf68ded096eb'
response = requests.post(
    f'{urlReport}/workspaces/{workspaceId}/reports/detailed', headers={'X-Api-Key': key}, json=request_payload)
print(response.status_code)
print(response.json())

your good information and good question but i am not idea.

I have no idea about this bro sorry can’t help

Did someone fix the “message”: “Please provide detailed filter.” error on API request?