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

Alex1110's avatar
Alex1110
Explorer | Level 3
7 months ago

Empty response and has_more true at /team_log/get_events

We are using endpoint /team_log/get_events and with some queryes it returns empty response (randomly). For example
1. URL: https://api.dropboxapi.com/2/team_log/get_events
body: 

 

{
    "limit": 1000,
    "time": {
        "start_time": "2024-01-01T19:48:51Z"
    }
}

 

Response

 

{
    "events": [],
    "cursor": "AAB0zDiP0dP_Yxqh0JE4cmAp1bVGd3a....",
    "has_more": true
}

 

 

2. URL: https://api.dropboxapi.com/2/team_log/get_events
body:  (increase day)

 

{
    "limit": 1000,
    "time": {
        "start_time": "2024-01-24T20:49:51Z"
    }
}

 

Response

 

{
    "events": [{}], // 1000 events
    "cursor": "AAB0zDiP0dP_Yxqh0JE4cmAp1bVGd3a....",
    "has_more": true
}

 

 

The most interesting. 
This startDate - "2024-01-23T23:46:10Z" returns empty array and has_more: true
This startDate - "2024-01-23T23:46:11Z" returns array with 1000 elements and has_more: true