Upload a temporary file
post
/epm/rest/v1/files/temp
Request
Supported Media Types
- multipart/form-data
Form Parameters
-
file(required): file
File to be uploaded. 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
409 Response
Virus check failed. Please retry with a clean file.
Examples
The following example shows how to upload a temporary file 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/temp \ -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/temp/dd8c5576-9db0-44b7-a9e9-e6a24491c950" } ] }