You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error 405 method_not_allowed when Deleting a file from inbox using REST API

Hello, I am working on Oracle EPBCS and trying to delete a file from the Data Management Inbox folder using a Groovy script that calls the REST API. However, when I try to delete the file I get the following error:

405 METHOD_NOT_ALLOWED

I would appreciate guidance on how to properly delete a file in this context.
Thank you!


Here is the code:

Connection connection = operation.application.getConnection("conn_name")

HttpResponse<String> deleteResp = connection.delete("/interop/rest/11.1.2.3.600/applicationsnapshots/file_name/contents?extDirPath=inbox/folder_name").asString()

if (deleteResp.status != 200 && deleteResp.status != 404) {
throwVetoException("Error al eliminar archivo: ${deleteResp.status} ${deleteResp.statusText}")

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!