Hi,
Using the web console I can create a file request for a folder inside our team root folder.
However when using the API for file requests (using team scoped token and specifying the header "Dropbox-API-Select-User") the file request gets created but the destination folder is using a subfolder of the user's own folder instead of the team folder.
Eg destination = "/TEAMFOLDER/uploads/"
Then the file request created with the API will put the destination at "/USER/TEAMFOLDER/uploads".
The call to the API is as follows:
POST https://api.dropboxapi.com/2/file_requests/create
$headers = [
'Authorization: Bearer API_KEY',
'Content-Type: application/json',
'Dropbox-API-Select-User: MEMBER_ID'
];
$body = [
'title' => "Request for files",
'destination' => "/TEAMFOLDER/uploads/",
'open' => true
];
Using PHP / curl
Thanks in advance,
Simon