Welcome to the new Box Support website. Check out all the details here on what’s changed.

Getting a File Request API - 404 Not Found Error

Answered
New post

Comments

4 comments

  • Mary Fossbender

    Hey Team Bordr, 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
    2. Click Edit
    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.


    0
    Comment actions Permalink
  • Thomas OConnor

    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. Team Bordr were you able to resolve this?

    0
    Comment actions Permalink
  • Thomas OConnor

    Note connecting as user

     

    client = Client(CCGAuth(
    client_id=client_id,
    client_secret=client_secret,
    user=user_id
    ))
    folder = create_folder(client, case_id)
    0
    Comment actions Permalink
  • Thomas OConnor

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

    0
    Comment actions Permalink

Post is closed for comments.