Below is the event when a team member uploads file, note that it has field "contextual" under assets>path.
{
"timestamp": "2019-05-23T01:11:12Z",
"event_category": {
".tag": "file_operations"
},
"actor": {
".tag": "user",
"user": {
".tag": "team_member",
"account_id": "dbid:AAC4XXXXXXXXXXXXuv8oCqkHpcyLw",
"display_name": "Andy Dwyer",
"email": "adwyer@veraqa.net",
"team_member_id": "dbmid:AAAJXXXXXLroYqf-A7hFdXXXXXX70WUmWw"
}
},
"origin": {
"geo_location": {
"city": "Sunnyvale",
"region": "California",
"country": "US",
"ip_address": "96.95.218.202"
},
"access_method": {
".tag": "end_user",
"end_user": {
".tag": "web",
"session_id": ""
}
}
},
"involve_non_team_member": false,
"context": {
".tag": "team_member",
"account_id": "dbid:AAC4N0gXXXXXXXXuv8oCqkHpcyLw",
"display_name": "Andy Dwyer",
"email": "adwyer@veraqa.net",
"team_member_id": "dbmid:AAXXXXXlPLroYqf-A7hFd3XXXXXX0WUmWw"
},
"participants": [],
"assets": [
{
".tag": "folder",
"path": {
"contextual": "/Sales/external/folder_creation_test",
"namespace_relative": {
"ns_id": "5568891184",
"relative_path": "/folder_creation_test"
}
},
"display_name": "folder_creation_test",
"file_id": "id:tG_h5JeqH1XXXXXAAAB1wQ"
}
],
"event_type": {
".tag": "file_add",
"description": "Added files and/or folders"
},
"details": {
".tag": "file_add_details"
}
}
Now, below is the event when external user drops a file , note this does not have field "contextual" under assets>path.
{
"timestamp": "2019-05-21T06:30:07Z",
"event_category": {
".tag": "file_operations"
},
"actor": {
".tag": "app",
"app": {
".tag": "user_linked_app",
"app_id": "dbaid:AACd5ER5-nbkf7XXXXXk8_ArXJQkQshU",
"display_name": "Dropbox for Android"
}
},
"origin": {
"geo_location": {
"city": "San Jose",
"region": "California",
"country": "US",
"ip_address": "2601:646:8700:42b0:dc48:3e00:ce93:310a"
},
"access_method": {
".tag": "api",
"request_id": "dbarid:73b4349e346cf6d6939d103ea76adad7"
}
},
"involve_non_team_member": true,
"context": {
".tag": "non_team_member",
"account_id": "dbid:AAD0uHlPDbAjch1-21c5LFXXXXVBalczE",
"display_name": "Manish Agarwal",
"email": "itsmanishagarwal@gmail.com"
},
"participants": [],
"assets": [
{
".tag": "file",
"path": {
"namespace_relative": {
"ns_id": "5561881552",
"relative_path": "/IMG_20190520_233130.jpg"
}
},
"display_name": "IMG_20190520_233130.jpg",
"file_id": "id:WSl52hXXXXAAAAAAAAADXA"
}
],
"event_type": {
".tag": "file_add",
"description": "Added files and/or folders"
},
"details": {
".tag": "file_add_details"
}
}
Now, how can I find the contextual path for the above namespace (ns_id:5561881552)?