I'm migrating files from box view version 1 to the new api. That means I'm iterating over all my files and uploading them to the new api. I am able to successfully upload a lot of files but then on some files I get a 405 Method Not Allowed Error. The files that succeed use the exact same code/API token as the ones that are failing. Here's some more info:
I'm doing a POST to https://upload.box.com/api/2.0/files/content. It's a multipart body request. The first part of the body are the attributes:
{"name":"name_of_file", "parent":{"id":"0"}}The second part of the body is the file itself.