Update a Deployment in a Project
/ic/api/integration/v1/projects/{projectId}/deployments/{id}
Updates a deployment using the ID and values specified in the request body. The request body must contain name and code.
- name: defines the name of the deployment.
- code: defines the code which is the unique identifier for the deployment.
- description: describes the deployment.
- integrations: specifies the integrations associated with the deployment. For example:
"integrations":[{"code":"TEST_INT1","version":"01.00.0000"}, {"code":"TEST_INT2","version":"02.00.0000"}]
- robots: specifies RPA robots included in the deployment. For example:
"robots":[{"identifier":"TEST_RPA1","version":"01.00.0000"}, {"identifier":"TEST_RPA2","version":"02.00.0000"}]
- decisions: specifies decision services included in the deployment. For example:
"decisions":[{"identifier":"TEST_DEC1","version":"01.00.0000"}, {"identifier":"TEST_DEC2","version":"02.00.0000"}]
- b2btradingpartners: lists B2B trading partners involved in the deployment. For example:
"b2btradingpartners":[{"code":"TEST_B2BTP1","version":"01.00.0000"}, {"code":"TEST_B2BTP2","version":"02.00.0000"}]
Request
-
id(required): string
Deployment identifier
-
projectId(required): string
Project identifier
-
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(required): string
HTTP Method override in the header
- application/json
object
-
b2btradingpartners: array
b2btradingpartners
B2BTradingPartner List
-
code(required): string
Deployment Identifier
-
decisions: array
decisions
Decision List
-
description: string
Deployment Description
-
integrations: array
integrations
Integration List
-
lastUpdated: string
(date-time)
Last Updated Date
-
name(required): string
Deployment Name
-
robots: array
robots
Robot List
object
-
code: string
TradingPartner Code
-
inboundAgrs: array
inboundAgrs
TradingPartner inboundAgrs List
-
name: string
TradingPartner Name
-
outboundAgrs: array
outboundAgrs
TradingPartner outboundAgrs List
-
status: string
TradingPartner Status
-
transports: array
transports
TradingPartner Transports List
-
type: string
TradingPartner Type
-
version: string
Default Value:
01.00.0000
TradingPartner Version
object
-
displayName: string
Decision Name
-
identifier: string
Decision Identifier
-
status: string
Decision Status
-
version: string
Decision Version
object
-
code: string
Integration Code
-
name: string
Integration Name
-
status: string
Integration Status
-
type: string
Integration Type
-
version: string
Integration Version
object
-
displayName: string
Robot Name
-
identifier: string
Robot Identifier
-
lifecycleState: string
Robot Lifecycle State
-
version: string
Robot Version
Response
- application/json; charset=utf-8, application/vnd.oracle.model+json;type=singular
200 Response
object
-
b2btradingpartners: array
b2btradingpartners
B2BTradingPartner List
-
code(required): string
Deployment Identifier
-
decisions: array
decisions
Decision List
-
description: string
Deployment Description
-
integrations: array
integrations
Integration List
-
lastUpdated: string
(date-time)
Last Updated Date
-
name(required): string
Deployment Name
-
robots: array
robots
Robot List
object
-
code: string
TradingPartner Code
-
inboundAgrs: array
inboundAgrs
TradingPartner inboundAgrs List
-
name: string
TradingPartner Name
-
outboundAgrs: array
outboundAgrs
TradingPartner outboundAgrs List
-
status: string
TradingPartner Status
-
transports: array
transports
TradingPartner Transports List
-
type: string
TradingPartner Type
-
version: string
Default Value:
01.00.0000
TradingPartner Version
object
-
displayName: string
Decision Name
-
identifier: string
Decision Identifier
-
status: string
Decision Status
-
version: string
Decision Version
object
-
code: string
Integration Code
-
name: string
Integration Name
-
status: string
Integration Status
-
type: string
Integration Type
-
version: string
Integration Version
object
-
displayName: string
Robot Name
-
identifier: string
Robot Identifier
-
lifecycleState: string
Robot Lifecycle State
-
version: string
Robot Version
400 Response
404 Response
500 Response
Examples
The following example shows how to update an existing deployment 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: Update the deployment TESTDEPLOYMENT in the project TEST_PROJECT
This command updates a deployment with the name and values specified in the request body.
Request:
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d @deployment.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/deployments/TESTDEPLOYMENT?integrationInstance=service-instance
Request Body:
The following example shows the contents of the request body in JSON format. The following code is the content of the deployment.json file listed in the cURL command:
{"name":"TestDeployment","code":"TESTDEPLOYMENT","description":"Test deployment","integrations": [{"code":"TEST_INT1","version":"01.00.0000"}, {"code":"TEST_INT2","version":"02.00.0002"}], "robots": [{"identifier":"TEST_RPA1","version":"01.00.0000"}],"decisions":[{"code":"TEST_DEC2","version":"02.00.0002"}]}