Update an Integration in a Project
/ic/api/integration/v1/projects/{projectId}/integrations/{id}
Activates or deactivates an integration in a project. To modify an active integration, you need to deactivate it first.
- Activate: Once you create an integration and it has the status CONFIGURED, you can activate the integration to the runtime environment.
Note that the version number matters when activating integrations:
- If integration XYZ/01.00.0000 is activated and you activate XZY/01.00.0001, XYZ/01.00.0000 will be automatically deactivated before XYZ/01.00.0001 is activated. You will have only one activated integration in this case (XZY/01.00.0001). Automatic deactivation behaves the same as a manual deactivation.
- If integration XYZ/01.00.0000 is currently activated and you activate XYZ/02.00.0000, you will have two activated integrations.
- Deactivate: You can deactivate an integration to stop it from processing any new messages. If there are pending requests unprocessed, they are lost after deactivation.
Updates integration property of an integration in a project.
Request
-
id(required): string
Integration composite identifier. The ID consists of the code and the version separated by the | (vertical line) character. Format: code%7Cversion. Example: SC2RN%7C01.00.0000. When using cURL, substitute the %7C code for the vertical line.
-
projectId(required): string
Project identifier
-
deleteEventSubscriptionFlag: string
Delete Event Subscription Flag
-
enableAsyncActivationMode: string
Activates/Deactivates an integration in asynchronous mode. The cURL request does not wait for the update process to finish and returns with success, while the update finishes in the background.
-
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.
-
X-HTTP-Method-Override:
X-HTTP-Method-Override request header
- application/json;charset=utf-8
object
-
apip-id: string
Application Identifier
-
event-subscription-flag: boolean
Event Subscription Flag
-
locked-by: string
Locked By
-
locked-date: string
(date-time)
Locked Date
-
project-model-version: string
Project Model Version
-
publish-flag: boolean
Publish Flag
-
schedule-params: object
schedule-params
Additional Properties Allowed: additionalPropertiesSchedule Parameters
-
scope: string
Scope of the integration
-
security-policy: string
Security Policy
-
skip-event-subscription: boolean
Skip Event Subscription
-
submit-now-uri: string
SubmitNow URI
-
tracking-instance-name: string
Tracking Instance Name
-
warning-msg: string
Warning Message
object
-
object additionalProperties
Additional Properties Allowed: additionalProperties
Response
- application/json; charset=utf-8
200 Response
object
-
activation-status: string
-
barta-built-by: string
BA (Business Accelerator) | R (Recipe) | TA (Technical Accelerator) builtBy
-
compatible: boolean
Compatible
-
created: string
(date-time)
Created Date
-
created-by: string
Created By
-
dependencies: object
IntegrationDependencyRs
-
description: string
Integration Description
-
doc-url: string
Documentation URL
-
end-point-uri: string
Integration Endpoint URI
-
end-points: array
end-points
Endpoints
-
filmstrip: array
filmstrip
Filmstrip
-
is-clone-allowed: boolean
Flag to Check if Clone Allowed
-
is-view-allowed: boolean
Flag to Check if View Allowed
-
keywords: string
Keywords
-
last-updated: string
(date-time)
Last Updated Date
-
last-updated-by: string
Last Updated By
-
locked-by: string
Locked By
-
locked-date: string
(date-time)
Locked Date
-
locked-flag: boolean
Locked Flag
-
mep-type: string
MEP Type
-
original-integration-code: string
Original Integration Code
-
package-name: string
Package Name
-
pattern: string
Pattern
-
pattern-description: string
Pattern Description
-
payload-tracing-enabled-flag: boolean
Payload Tracing Enabled Flag
-
percentage-complete: number
Percentage Complete
-
project-id: string
-
project-type: string
Project Type
-
properties: array
properties
Integration Properties List
-
proxy-wsdl: string
Proxy WSDL
-
reactivation-status: string
Reactivation Status
-
record-enabled-flag: boolean
Record Enabled Flag
-
schedule-applicable-flag: boolean
Schedule Applicable Flag
-
schedule-defined-flag: boolean
Schedule Defined Flag
-
scope: string
-
smart-tags: string
Smart Tags
-
style: string
Style
-
style-description: string
Style Description
-
temp-copy-exists: boolean
Temp Copy Exists Flag
-
total-end-points: integer
(int32)
-
tracing-enabled-flag: boolean
Tracing Enabled Flag
-
tracking-variables: array
tracking-variables
Tracking Variables List
404 Response
412 Response
500 Response
Examples
The following examples shows how to activate/deactivate an integration in 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: Activate/Deactivate integration HELLO_WORLD|01.02.0000 in the project TEST_PROJECT
Request
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -H "X-HTTP-Method-Override:PATCH" -d @update.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/integrations/HELLO_WORLD%7C01.02.0000?integrationInstance=service-instance
Request Body
The following example shows the contents of the request body in JSON format. This is the contents of the update.json file listed in the cURL command. The JSON file must contain one main attribute: status. In this example, the integration is activated. To deactivate an integration, set the status to CONFIGURED.
{"status":"ACTIVATED"}
Possible statuses are ACTIVATED for an active integration, or CONFIGURED for an inactive integration.
Example: Update Integration property value of integration HELLO_WORLD|01.02.0000 in the project TEST_PROJECT
Updates the integration property of an integration by submitting a POST request on the REST resource.
Request
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -H "X-HTTP-Method-Override:PATCH" -d @updateproperty.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/integrations/HELLO_WORLD%7C01.02.0000?integrationInstance=service-instance
Request Body
The request body is the contents of the updateproperty.json file listed in the cURL command. The JSON file must contain the integration property name and value that you want to update.
{"properties":[{"name":"integration_property_1","currentValue":"1234"}]}