Import(Add) a Package
post
/ic/api/integration/v1/packages/archive
Imports a new package file. To submit an import request, the package must not be present in the environment. If the package was imported earlier, use Import(Replace) a Package instead.
Request
Supported Media Types
- multipart/form-data
Query Parameters
Form Parameters
-
file(required): file
Previously exported package file
Response
Supported Media Types
- application/json; charset=utf-8
204 Response
Successful operation
400 Response
No file is uploaded
409 Response
Package already exists
500 Response
Server error
Examples
The following example shows how to import a package 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.
Example: Import a new package
curl -X POST -H 'Authorization: Bearer access_token' -F file=@package.par -F type=application/octet-stream https://integration.us.oraclecloud.com/ic/api/integration/v1/packages/archive