In one script in my FileMaker database solution, I upload a file to a constructed path, then save the unique id:xxxxxxxxxxxxxxxx number for that record, to tie the record to the file in the DropBox directory.
In another script, I wanted to delete the file by id:xxxxxxxxxxxxx and not by path. If I understand pathString(pattern="(/(.|[\r\n])*)|(ns:[0-9]+(/.*)?)|(id:.*)") correctly, I should be able to do this, no?
curl -X POST https://api.dropboxapi.com/2/files/delete_v2 \
--header "Authorization: Bearer <get access token>" \
--header "Content-Type: application/json" \
--data "{\"path\":\"$idDBX"}"
//where $idDBX is the stored value of id:xxxxxxxxxxxxx
The result I get returned is "Error in call to API function "files/delete:2": Unexpected HTTP headers: "Dropbox-Api-Arg""