Hi ,
The specification of search_v2 api(link) is written as follows. so I tried to search by id.
path String(pattern="(/(.|[\r\n]):*)?|id:.*|(ns:[0-9]+(/.*)?)")? Scopes the search to a path in the user's Dropbox. Searches the entire Dropbox if not specified. This field is optional.
But, When send a request with the id on using Dropbox Api Explore , return 400 error.
Does search_v2 api not support searching by id?
description:
request:
(Authorization and path value is masked.)
curl -X POST https://api.dropboxapi.com/2/files/search_v2 \
--header 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
--header 'Content-Type: application/json' \
--data '{"query":"Sample","options":{"path":"id:dummy"}}'
Response:
Error: 400
Error in call to API function "files/search_v2": <redacted>
Thanks,
rshaizawa