Upload a file to the staging area

post

/epm/rest/v1/files/staging

Request

Supported Media Types
Form Parameters
  • File to be uploaded. If the file with the provided name exists, it will be overwritten. Boundary Parameter is required in Content-type request header.
Back to Top

Response

201 Response

File created
Body ()

403 Response

Forbidden

409 Response

Virus check failed. Please retry with a clean file.
Back to Top

Examples

The following example shows how to upload a file to the staging area by submitting a post request on the REST resource using cURL.

cURL Command

curl --user epm_cloud_user -X POST \
  https://servername.fa.us2.oraclecloud.com/epm/rest/v1/files/staging \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F file=@sampleFile.csv

Example of Response Body

The following shows an example of the response body in JSON format.

{
  "links": [
    {
      "rel": "file",
      "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/files/staging/file.csv"
    }
  ]
}
Back to Top