Hi,
I use a web site development program called Wappler which allows for the setup of API's
It has a section for the URL of the API, JSON DATA and I can add headers.
I used the default:
https://api.dropboxapi.com/2/files/create_folder_v2
and added the headers:
"Authorization: Bearer <my token here>" \
"Content-Type: application/json" \
and in the Json Data box I put:
{ "autorename": false, "path": "/Homework/math/{{$_POST.foldername}}" }
This works OK and creates a folder from my form input to my home folder inside a folder called Apps> Homework/math/myfoldernamefrom form
I want to create the folder in the team space so I added the Dropbox-API-Path-Root header and the value {".tag": "root", "root": "7"}, along with the following in the Json Data:
{
"path": "{{$_POST.foldername}}"
}
I know the 7 is just a sample and I have the details of my user ID, at the bottom is the root_info, with .tag, the root_namespace_id, the homespace_id and my home_path.
What do/would I put in the Json Data to create a folder in team space called CompanyOne>FolderOne
Many thanks for your help