The Replace Component Version call replaces a Component in an Application with another. It is typically used to update a Component version in a newly created Application.

API Call


http://host/dmadminweb/API/replace/app_id/old_comp_id/new_comp_id


Where:


host

Is the hostname and port of the DeployHub Server (e.g.: hostname:8080 or for SaaS console.deployhub.com).

app_id

Is the ID of the Application with which old_comp_id is  associated. Either its name, its qualified name (i.e.: with its parent Domain(s) included in dot notation) or its internal ID.

old_comp_id

Is the ID of the Component in app_id which is to be replaced. Either its name, its qualified name (i.e.: with its parent Domain(s) included in dot notation) or its internal ID.


Example Result:


{

       success: true

}