Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong base url in "upload file" endpoint #417

Open
codal-mdesai opened this issue May 1, 2024 · 3 comments
Open

Wrong base url in "upload file" endpoint #417

codal-mdesai opened this issue May 1, 2024 · 3 comments
Labels
documentation Error found at Box Developer Documentation site

Comments

@codal-mdesai
Copy link

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 codal-mdesai added the documentation Error found at Box Developer Documentation site label May 1, 2024
@bszwarc
Copy link
Collaborator

bszwarc commented Jul 3, 2024

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

@codal-mdesai
Copy link
Author

image
unfortunately I am still seeing this issue

@bszwarc
Copy link
Collaborator

bszwarc commented Jul 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Error found at Box Developer Documentation site
Projects
None yet
Development

No branches or pull requests

2 participants