Administrator

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.

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

  • Promote Application
    curl --user <user>:<password> --cacert <your-server.pem> --X PUT -i https://localhost:8083/Admin/kapsel/jaxrs/KapselApp/MyTestAppId