Prophet21 Entity API filehandler

Hello all!

I am very new to prophet21 development and am trying to use the filehandler endpoint of the REST api to manage files on the server. I am having issues specifically with the DELETE request.

I have the documentation for the POST, PUT, GET, and DELETE requests and they all allow for a file and path parameter. In my testing I have no issues with any other commands pointing to a specific path, but its seeming like the delete request is ignoring the path parameter.

Here’s an example of my request url: …epicordistribution.com/api/filehandler/file/path?fileName=test_file.txt&path=…\shared\new_folder

I am able to create, modify, and download files in the specific \shared\new_folder\ directory I created, but even when using the exact same path as the other requests, I cannot delete. I have tested and the delete request simply ignored the specified path and deletes in the main \shared\ directory.

Basically I created two test_file.txt files one in \shared\ and one in \shared\new_folder\. Sending a delete request specified to the \shared\new_folder\ path deletes the test_file.txt in the \shared\ path.

I’m unsure if this is a bug, permissions/access limitation, or my error. With how new I am to prophet21 and epicor, I thought I’d do a sanity check and try my first post here before digging down rabbit holes or opening tickets.

Much thanks!