Import (Add) a Lookup

post

/icsapis/v2/lookups/archive

Imports (adds) a lookup that was exported previously. Importing a lookup under a different user name or version than what was exported is not supported. If you are using cURL, use the -F option to specify the file to import.

Request

Supported Media Types
Form Parameters

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : lookup
Type: object
Show Source
Nested Schema : columns
Type: array
Show Source

204 Response

Successful operation, no content sent, the Location header provides the URI for the newly created lookup

400 Response

No file is uploaded

409 Response

Lookup already exists

500 Response

Server error

Examples

The following cURL command example shows how to import a new lookup by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.

curl -k -v -X POST -u jstein:welcome1 -F file=@t.csv -F type=application/octet-stream https://integration.us.oraclecloud.com/icsapis/v2/lookups/archive