Promoting Hybrid Apps Using the REST API

Promote a new hybrid app to make it the current version of the application using the promote application REST API.

Note: You can promote a hybrid app for a specific platform or for all platforms

Syntax

To promote for all platform, perform a PUT request to the following URI:

https://<host>:<admin_port>/Admin/kapsel/jaxrs/KapselApp/{APP_ID}
To promote for a specific platform, perform a PUT request to the following URI::
https://<host>:<admin_port>/Admin/kapsel/jaxrs/KapselApp/{APP_ID}/{PLATFORM}

Include the user name and password in the request to provide authentication for the URI.

After the application is promoted, users can download a patch to upgrade the application on their device.

Parameters

None.

Returns

On successful promotion, the client receives a 200 status code. Otherwise, an HTTP failure code and failure message are returned.

Examples

Note: This example uses the curl command line client and the --cacert flag. Your client may require you to pass other arguments or set specific configuration options.