Import (Add) an Integration in a Project
post
/ic/api/integration/v1/projects/{projectId}/integrations/archive
Imports a new integration in a project that was previously exported. To submit an import request, the integration must not be present in the environment.
If you are using cURL, use the -F option to specify the file to import.
Request
Path Parameters
-
projectId(required): string
Project identifier
Query Parameters
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
Supported Media Types
- multipart/form-data
Root Schema : schema
Type:
Show Source
object
-
file: string
(binary)
Previously exported integration file
Response
204 Response
Successful operation, no content sent, the Location header provides the URI for the newly created integration
400 Response
No file is uploaded
409 Response
Integration already exists
500 Response
Server error
Examples
The following example shows how to import an integration into a project 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 integration into the project TEST_PROJECT
curl -X POST -H 'Authorization: Bearer access_token' -H "Accept:application/json" -F file=@myIntegration.iar -F type=application/octet-stream https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/integrations/archive?integrationInstance=service-instance