We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

toki4004's avatar
toki4004
Helpful | Level 5
2 years ago

Error: "request body: id... did not match pattern"

I am trying to get contents of a text file via  https://api.dropboxapi.com/2/file_requests/get and I get this error:  "Error in call to API function "file_requests/get": request body: id: 'id:J...
  • Здравко's avatar
    2 years ago

    Hi toki4004,

    To get content of any file, you need to download it, not something else. 🙂

    Something more: as seems you're messing 2 different things - file and file request! File request is pseudo object representing your (or your app' user) intention to get file from somebody else, not the file itself. Getting such object means to get the pseudo object description, not any file that may be received while using this request - multiple files could be received with single request. File request has its own id with its own format that differs from file id format, of course. That where your error is coming from. 😉

    Hope this clarifies matter.