Update a Deployment in a Project

post

/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

Path Parameters
Query Parameters
Header Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : rows
Type: array
Integration List
Show Source
Nested Schema : Integration
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : rows
Type: array
Integration List
Show Source
Nested Schema : Integration
Type: object
Show Source

400 Response

Bad request, missing required data

404 Response

Deployment not found

500 Response

Server error
Back to Top

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"}]}
Back to Top