Hi Team,
I am integrating CASB with dropbox. Previously we were using this condition to add the header in following API: https://api.dropboxapi.com/2/files/copy_reference/get
Dropbox-API-Path-Root = "#account_type == 'team' ? '{\".tag\": \"namespace_id\", \"namespace_id\": \"' + #root_namespace_id + '\"}' : ''"where we were making this api call to get the "account_type-> $[''body''][''root_info''][''.tag'']" and "root_namespace_id-> $[''body''][''root_info''][''root_namespace_id'']" ,
https://api.dropboxapi.com/2/users/get_current_account
Earlier this approach was working fine for all type of events. Recently we are experiencing an issue when the events are generated in team shared space.
So for all the user we have currently the account_type is coming as business and that's why we are passing Dropbox API Path Root as null and we are getting error in copy ref api for shared file event.
Do you think this is the right way to handle the scenario for all the type of events that we received from team logs api?
Is there any other parameter in the team log api that we can rely on to distinguish between when to call copy ref api with that header or not? Or let us know if this use case(team log events for file/folder shared/non shared all) is achievable by hitting any other api?