Skip to main content
Question

Question about Create or Update Shared Link Endpoint

  • May 21, 2025
  • 2 replies
  • 41 views

Forum|alt.badge.img

Hi, I'm new to the Box API, it has been really easy to work with until today.

I'm getting a weird response when I call the Create Shred Link endpoint.

 

 

{
  "type": "file",
  "id": "15***phone number removed for privacy***",
  "etag": "0",
  "shared_link": null
}

URL: https://api.box.com/2.0/endpoint//files/15***phone number removed for privacy***?fields=shared_link.

 

I thought it was something wrong with my request, so I tried your simulator.But I get the same response.

 

BOX_jw1l5a6un854uu9e4drfahk5bzv0e6nm.png

 

Does anyone know why I'm getting this?(It worked fine this morning on different files)

 

Thanks in advance for your help 🙂

 

2 replies

Forum|alt.badge.img

Hey,

 

If this is a new file, you will have to specify the access level you want. If you go down to the body parameters and select open, you should get the shared link in the response. I just tried for myself and it worked.

 

Let me know if it doesn't!


Forum|alt.badge.img

 

Ok so I tried it again and if I make an API call it works, but if I use the Node SDK I get the same error.

I'm just going to go with the API call, but I thought it would be good to point out this possible glitch in the SDK.