Upload a file to the staging area
post
/epm/rest/v1/files/staging
Request
Supported Media Types
- multipart/form-data
Form Parameters
-
file(required): file
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.
Response
201 Response
File created
Root Schema : IdNameLink
Type:
Show Source
object
-
description:
string
Read Only:
true
-
id:
string(uuid)
-
links:
array links
-
name:
string
403 Response
Forbidden
409 Response
Virus check failed. Please retry with a clean file.
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" } ] }