box/box-openapi

Wrong base url in "upload file" endpoint

Opened this issue · 3 comments

Description of the issue

Incorrect base url mapped for CURL example For Upload File and all upload endpoints where base url should be "https://upload.box.com" instead of "https://api.box.com"

Current content

curl -i -X POST "**https://api.box.com/**2.0/files/content"
-H "authorization: Bearer <ACCESS_TOKEN>"
-H "content-type: multipart/form-data"
-F attributes='{"name":"Contract.pdf", "parent":{"id":"11446498"}}'
-F file=@<FILE_NAME>

Expected content

curl -i -X POST "**https://upload.box.com/api/**2.0/files/content"
-H "authorization: Bearer <ACCESS_TOKEN>"
-H "content-type: multipart/form-data"
-F attributes='{"name":"Contract.pdf", "parent":{"id":"11446498"}}'
-F file=@<FILE_NAME>

Link to the documentation page

https://developer.box.com/reference/post-files-content/

Thank you for pointing this one out - we have fixed it.

image
unfortunately I am still seeing this issue

It should be fine now: https://developer.box.com/reference/post-files-content/ - we were waiting for the build to finish :D