Skip to main content
Question

Getting a File Request API - 404 Not Found Error

  • May 22, 2025
  • 4 replies
  • 67 views

Forum|alt.badge.img

I created a file request on a template folder so that I can then copy it to other folders (since we can't just create new file requests yet). However, I'm having an issue where I can't even find that file request I created via the API. 

I'm using GET call to https://api.box.com/2.0/file_requests/[file_request_id]. I'm using the as-user header and have these 2 options checked in the app.

"user-id" : "XXXXXXXX"

BOX1_wfSPrsIPMWxpOKluVjQXVA.png

My link looks like this: https://app.box.com/f/cd75f9b86c8a4805861317db93611699

From the documentation, it seems like the file_request_id should be: cd75f9b86c8a4805861317db93611699

I've tried many different permutations though and every time I get a 404 ERROR: NOT FOUND. Is there something I'm doing wrong here? 

BTW I'm using Client Credentials Grant to generate an Access Token that then lets me access the folders (I already tested that I can access the template folder that the file request is created on). I've already used Get Current User to confirm that it's the same User ID that created the folder & the file request link.

"box_subject_type": "user",
"box_subject_id": "XXXXXXXXX" 

Thanks for the help!

 

4 replies

Forum|alt.badge.img

Hey 1504866542281, might try the following, if you haven't already. 

  1. go to the folder where the file request object was created, then click the File Request icon
    BOX1_nqCbg-e2p1pWyf6AzGWLpg.png
  2. Click Edit
    BOX1_-YM62wTRJEzhhd9ySyzA0g.png
  3. Your URL should then be something like https://app.box.com/filerequest/[file request object id is here]
    The file request object's id is at the end of that link.



Forum|alt.badge.img

Hi we are getting exactly the same error. My file request URLs are `/f/<request id>` rather than `filerequest/[file request object id is here]`. Using the Python SDK our request looks like this:

json_response = client.make_request(
'POST',
client.get_url('file-requests', template_id, 'copy'),
data=json.dumps({
"title": f"Upload your files to for case {case_id}",
"description": "Files will be deleted after 24 hrs of upload.",
"status": "active",
"folder": {
"id": folder.id
}
})
).json()

Our template link Is active and accessible. 1504866542281 were you able to resolve this?


Forum|alt.badge.img

Note connecting as user

 

client = Client(CCGAuth(
client_id=client_id,
client_secret=client_secret,
user=user_id
))
folder = create_folder(client, case_id)

Forum|alt.badge.img

Seems like you must use the link on the edit page.