I have a issue related to shared folder unsharing. I gonna post the requests and corresponding results.
Running 2/sharing/list_mountable_folders:
curl -X POST https://api.dropboxapi.com/2/sharing/list_mountable_folders \
--header 'Authorization: Bearer sl.BQ...' \
--header 'Content-Type: application/json' \
--data '{}'
... does return:
{
"entries": [
{
"access_type": {
".tag": "owner"
},
"is_inside_team_folder": false,
"is_team_folder": false,
"path_lower": "/music",
"name": "Music",
"policy": {
"acl_update_policy": {
".tag": "editors"
},
"shared_link_policy": {
".tag": "anyone"
},
"viewer_info_policy": {
".tag": "enabled"
}
},
"preview_url": "https://www.dropbox.com/scl/fo/5vl.../h?dl=0",
"shared_folder_id": "3104120081",
"time_invited": "2022-09-29T17:34:02Z",
"access_inheritance": {
".tag": "inherit"
}
},
...
]
} For readability, the important entry is listed only (some non important content is stripped, but id is the actual).
Next while I'm trying unshare the same folder using /2/sharing/unshare_folder:
curl -X POST https://api.dropboxapi.com/2/sharing/unshare_folder \
--header 'Authorization: Bearer sl.BQ...' \
--header 'Content-Type: application/json' \
--data '{"shared_folder_id":"3104120081"}'
The result is an async id:
{
".tag": "async_job_id",
"async_job_id": "dbjid:AABWMExqheAMvyb_UB-tiU5GcyV0Z1AWnBzBuV6EMZEHaFDv9QFv5ru1mpNqFYC1KizxEvJ3lweB4WwZQ1kcwlQI"
}And at the end the result on checking job status using /2/sharing/check_job_status:
curl -X POST https://api.dropboxapi.com/2/sharing/check_job_status \
--header 'Authorization: Bearer sl.BQ...' \
--header 'Content-Type: application/json' \
--data '{"async_job_id":"dbjid:AABWMExqheAMvyb_UB-tiU5GcyV0Z1AWnBzBuV6EMZEHaFDv9QFv5ru1mpNqFYC1KizxEvJ3lweB4WwZQ1kcwlQI"}'
...results in:
{
".tag": "failed",
"failed": {
".tag": "unshare_folder_error",
"unshare_folder_error": {
".tag": "no_permission"
}
}
}In addition to 'no_permission':
x-dropbox-request-id: 2188ae550fd2438198dbe457909a661a
Why this 'no_permission' gets up?