Skip to content

Managing App Versions

Retrieving Hybrid App Details Using the REST API

Retrieve details about a new or current version of a hybrid app using the GET application REST API.

Syntax

Send a GET request to the following URI:

https://<mobile services host>/cockpit/v1/org/<ORG_NAME>/space/<SPACE_NAME>/app/<APP_ID>/service/app-update/Admin/kapsel/jaxrs/KapselApp/<APP_ID>

Note

To authenticate, specify the user name and password in each request.

Returns

If successful, a 200 status code is returned; otherwise, an HTTP failure code and an error message are returned.

Example

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

curl --user <user>:<password> --cacert <your-server.pem> --X GET -i https://service-cockpit-web-development.cfapps.sap.hana.ondemand.com/cockpit/v1/org/mobiledev_mobile-ops-subscriber/space/development-qa/app/MyTestAppId/service/app-update/Admin/kapsel/jaxrs/KapselApp/MyTestAppId

Deleting Hybrid Apps Using the REST API

Delete a hybrid app using the DELETE application REST API. Developers can delete only the applications they created.

Delete a hybrid app from a specific platform or from all platforms.

Note

To authenticate, specify the user name and password in each request.

Syntax

To delete a hybrid app from all platforms, send a DELETE request to the following URL:

https://<mobile services host>/Admin/kapsel/jaxrs/KapselApp/<APP_ID>

To delete a hybrid app from a specific platform, send a DELETE request to the following URL:

https://<host>:<admin_port>/Admin/kapsel/jaxrs/KapselApp/<APP_ID>/<PLATFORM>

To delete pending revisions they created, developers can:

  1. Add the X-HTTP-METHOD=DELETE parameter to the request header.
  2. Format the request body as this JSON string:

    [{"platform": "android","revisions":[1,2,3]},
    {"platform": "ios","revisions":[4,5,16]}]
    [{"platform": "android","revisions":[2]},{"platform": "ios"}]
    [{"platform": "android"}]
    
  3. Send a POST request to the following URL:

    https://<mobile services host>/Admin/kapsel/jaxrs/KapselApp/delete/<APP_ID>

Returns

If successful, a 201 status code is returned; otherwise, an HTTP failure code and an error message are returned.

Example

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

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

Last update: August 12, 2020