Skip to main content
Participating Frequently
Jun 21, 2023 5:20 PM UTC

Box API call to Get Folder Items returns Error: Request failed with status code 404

I created a custom APP and able to run APIs from Postman without any errors.
When I try to run from typescript, I am able to run API calls to get an access token. But when I run list folder items api call it fails with 404 error - not found. I also added ‘as_user’ to the header of request, but still getting the same error. What am I missing?
The API call works with Developers Token. When I use Access Token the above APIs don’t work and return 404 error.
Very much appreciate your responses.

    14 replies

    user19Author
    Participating Frequently
    Jun 26, 2023 7:28 PM UTC

    Hi,
    Thank you so much for your responses. I am not sure if we can wait until Type Script SDK is released, but this a good information.

    We are looking to download a file and there’s API that does it.
    We would also need to move this file to another BOX folder after our data integration finished processing it. Can you please direct us to the API that move file to another folder?

    Thank you for your help!
    Vadim

    Translate
    rbarbosa Box
    Developer Advocate
    Jun 27, 2023 1:21 PM UTC

    Hi @user19

    You just need to update the file with the new parent folder.

    See API here.

    Cheers

    Translate
    user19Author
    Participating Frequently
    Jun 28, 2023 3:29 PM UTC

    I tried and it works.
    Thank you

    Translate
    rbarbosa Box
    Developer Advocate
    Jun 28, 2023 4:53 PM UTC

    You’re most welcome Vadim

    Translate