Get-File / Delete-File - Groov Manage API Trouble

Hello,

I’m trying to download a file from the Groov Epic’s unsecured files location. After a bit of digging I found the build in API’s in the EPIC, though Swagger. I have been able to read modules, enable/disable the VPN, and get device information -so I have reasonable confidence that my API key is working and there is good connection. My problem is that every time I go use the ‘Get-File’ or ‘Delete-File’ API there is a 404 not found error, even though the file is very clearly in the unsecured files location on the EPIC.

I’m wondering if there is something that I can check to see why this might be the case.

Dan

I’d need to refresh my memory (probably by searching the forums < grin >), but I think since you are using an API key, its only going to allow you to read/write the secured file area.

I’ve done a good dive on the forums and I can’t find any posts specifically related to ‘get-file’. I changed my save location to ‘secured files’ on the EPIC and tried again , still getting a 404 error.

Is there something specific to .csv files that requires a different procedure?

Hmmm, Ok. Thanks a heap for taking a deep look here, that saves me a bunch of time.
I will try and see whats going on by reproducing it.
It should be very straight forward.

That looks like maybe the Swagger API tool isn’t working correctly; it should’ve swapped out {areaPath} for your filename.

Fun little trick though: click on the file in groov Manage’s interface, and you’ll get to this page:

That Download button has the URL you need: right click and copy it. Manage’s interface here uses the same API that you’re trying to use.

In my case, the URL ends up being:

https://192.168.5.54/manage/api/v1/files/unsecured/rpc/get-file/PullSpriteBatch.vert.spv

Despite being in the unsecured area, I still need to be signed in or provide an API key to reach that file. I don’t know off the top of my head whether that’s the intended behavior.

2 Likes