I am trying to create a shared link for a file that I uploaded using this curl command:
curl -X POST https://upload.box.com/api/2.0/files/content -H 'Authorization: Bearer ' -H "Content-Type: multipart/form-data" -F attributes='{"name":"kat_test.pdf","parent":{"id":""},"shared_link":{"access":"open"}}' -F file=@test.pdf
The file is being uploaded with "shared_link" set to "null". Why?
Also I found SDK commands to create a shared link on a file but not a curl command. Our backend is in Go, so I am not able to use any of the existing SDKs. Is there a curl command I can run to create a shared link on file?