Create request items from a saved attachment

post

/epm/rest/v1/requests/{requestId}/import

Request

Path Parameters
Body ()
Root Schema : RequestImportOptionsJson
Type: object
Show Source
Nested Schema : sheetNames
Type: array
List of sheets to import
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted, import processing
Body ()

403 Response

Forbidden

404 Response

Not Found

413 Response

Request Entity Too Large

415 Response

Unsupported file media type

500 Response

Invalid file stream
Back to Top

Examples

The following example shows how to import a file attached to a request into the request by submitting a post request on the REST resource using cURL.

cURL Command

curl --user epm_cloud_user -X POST -H 'Content-Type: application/json' -d @example_request_payload.json https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/e1847bbc-f2d2-46a2-af3d-2dadcf9d7bd4/import

Example of Request Body

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

{
    "attachmentUri": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/requests/e1847bbc-f2d2-46a2-af3d-2dadcf9d7bd4/attachments/b70919e7-5c07-466f-9989-6063fc59bf3e",
    "sheetNames": ["Account"]
}


Example of Response Body

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

{
  "links": [
    {
      "rel": "results",
      "href": "https://servername.fa.us2.oraclecloud.com/epm/rest/v1/jobRuns/c9f63edd-d2c8-4712-a1a0-43fc3a410f97"
    }
  ]
}
Back to Top