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"}]
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):
HTTP Method override in the header
- application/json
object
-
code(required): string
Deployment Identifier
-
description: string
Deployment Description
-
lastUpdated: string
(date-time)
Last Updated Date
-
name(required): string
Deployment Name
-
rows: array
rows
Integration List
Response
- application/json; charset=utf-8, application/vnd.oracle.model+json;type=singular
200 Response
object
-
code(required): string
Deployment Identifier
-
description: string
Deployment Description
-
lastUpdated: string
(date-time)
Last Updated Date
-
name(required): string
Deployment Name
-
rows: array
rows
Integration List
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"}]}