Deleting file from Inbox/Outbox Explorer using REST API
Hi all,
We are trying to delete a csv file from Inbox/Outbox Explorer using the below REST API
https://docs.oracle.com/en/cloud/saas/enterprise-performance-management-common/prest/delete_files_v2.html
Although, this REST API is working fine from Postman, the below error is thrown when implementing the same in groovy script.
Below is the groovy script:
def json_data="""
{
"fileName": "Test.csv"
}
"""
HttpResponse<String> jsonResponse= operation.application.getConnection("EPBCSPlanning").delete('/interop/rest/v2/files/delete')
.header("Content-Type","application/json")
.body(json_data)
.asString()
println(jsonResponse.body)
It would be really helpful if you guys can guide me through this. Thanks a ton for your responses in Advance!
Tagged:
0