Skip to content

App Catalog Service Keys

Service Key for Upload

The service keys role, upload_artifacts, allows you to upload new mobile application versions without using the SAP mobile service cockpit. The alias used in the artifact version manifest will be "uploaded by."

The following examples uses the Alias and API Key for the APPLAB_USER environment variable. The URL is provided as an APPLAB_URL value.

Example using cURL:

export APPLAB_USER="upload:999999fcef9999984299f1263232502158aaca9a1aa9e81fe0c2dbe78943fe40"
export APPLAB_URL=https://service-catalog-p0123456.cfapps.sap.hana.ondemand.com/5f9b5b8d-ffeb-4330-b607-638a0184a990
curl -X POST \
  ${APPLAB_URL}/applab/v1/applicationversions \
  -u ${APPLAB_USER} -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F 'file=@/Path/To/Artifact/CertsOnboard-1.0.6611.0.ipa'
set APPLAB_USER "upload:999999fcef9999984299f1263232502158aaca9a1aa9e81fe0c2dbe78943fe40"
set APPLAB_URL https://service-catalog-p0123456.cfapps.sap.hana.ondemand.com/5f9b5b8d-ffeb-4330-b607-638a0184a990
curl -X POST \
  ${APPLAB_URL}/applab/v1/applicationversions \
  -u ${APPLAB_USER} -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F 'file=@\Path\To\Artifact\CertsOnboard-1.0.6611.0.ipa'

The service responds with "HTTP Status 201-Created." and the mobile application version metadata:

{
    "id": "2a215d9c-452c-4d09-bd8f-56c36f1add07",
    "appName": "CertsOnboard",
    "bundleId": "com.afariaeng.certsonboard",
    "platform": "IOS",
    "formFactors": [
        "PHONE",
        "TABLET"
    ],
    "version": "1.0.6611.0",
    "buildVersion": "1.0.6611.0",
    "origin": "manual upload",
    "description": null,
    "contact": null,
    "createdAt": "1972-04-07T07:30:41.436Z",
    "createdBy": "upload",
    "updatedAt": "1972-04-07T07:30:41.436Z",
    "updatedBy": "upload",
    "minimumOSVersion": "6.0",
    "published": false
}

Last update: April 14, 2021