You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
umor
6 years agoExplorer | Level 4
Error in Auditlog API with start date parameter
Hello,
I am facing issue while verifying Curl Dropbox API in json for audit logs by specifying start time and end time, Kindly help me to solve this issue
curl -X POST https://api.dropboxapi.com/2/team_log/get_events --header "Authorization: Bearer ABC" --header "Content-Type: application/json" --data "{\"limit\": 50,\"start_date\": 2019-08-25T15:51:30Z,\"end_date\": \"2019-08-30T15:51:30Z\"}"
ERROR: Error in call to API function "team_log/get_events": request body: could not decode input as JSON
Hi umor,
Can you clarify, why you expect that parameters "start_date" and "end_date" are available? As far as I can see in documentation only available are "limit", "account_id", "time" and "category". :thinking:
If you want to use "start_date" and "end_date", have to 'catch' them in "time" parameter. (format="%Y-%m-%dT%H:%M:%SZ") :wink:
Hope this helps.
- umorExplorer | Level 4
Hello,
Thanks for your response,
I try this CURL command with the correct syntax but still giving an error "Error in call to API function "team_log/get_events": request body: unknown field 'start_date'"
curl -X POST https://api.dropboxapi.com/2/team_log/get_events --header "Authorization: Bearer ABC" --header "Content-Type: application/json" --data "{\"limit\": 50,\"start_date\": 1564617600,\"end_date\": 1567295999}"
- ЗдравкоLegendary | Level 20
Hi umor,
Can you clarify, why you expect that parameters "start_date" and "end_date" are available? As far as I can see in documentation only available are "limit", "account_id", "time" and "category". :thinking:
If you want to use "start_date" and "end_date", have to 'catch' them in "time" parameter. (format="%Y-%m-%dT%H:%M:%SZ") :wink:
Hope this helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,899 PostsLatest Activity: 10 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!