box-openapi icon indicating copy to clipboard operation
box-openapi copied to clipboard

Wrong base url in "upload file" endpoint

Open codal-mdesai opened this issue 1 year ago • 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/

codal-mdesai avatar May 01 '24 15:05 codal-mdesai

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

bszwarc avatar Jul 03 '24 10:07 bszwarc

image unfortunately I am still seeing this issue

codal-mdesai avatar Jul 03 '24 10:07 codal-mdesai

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

bszwarc avatar Jul 03 '24 11:07 bszwarc

Hello, this issue is fixed now. Thank you for reporting that.

antusus avatar Mar 06 '25 13:03 antusus