The Create New Application Version call creates a new version of an Application. The new Application inherits all the attributes of the predecessor Application. In order for this to work through the DeployHub permission model, there has to be a Create Version task either in the Domain in which the specified Application is located or in any of the parent Domains if the Create Version task is set to be available to sub-Domains. If finer control is required, name it via the task parameter.


This mechanism ensures that the invoking user has permission to create a new version of the Application (since the permissions are checked against the task) and also the target Domain (i.e.: the Domain in which the new Application is created) is determined from the task. By specifying the task to execute, any pre and post link actions are executed just as if the task had been invoked via the Web UI.

API Call


http://host/dmadminweb/API/new/appver/app_id[?task=task_identifier]


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 which will be the parent of the new Application version. Either its name, its qualified name (i.e.: with its parent Domain(s) included in dot notation) or its internal ID. The newly created Application version will inherit all the attributes from this Application.

Task_Identifier

Is the identifier of a task to execute in order to create the new Application version. Either its name, its qualified name (i.e.: with its Domain and any parent Domain(s) included in dot notation) or its internal ID. If the task is not specified, the first accessible Create Version task within the Application's Domain is used (or any Create Version task in parent Domains if they are set to be available to Sub-Domains).


Example Result:


{

       success: true

}