Skip to main content
Legacy API

The examples on this page use the legacy contract. They are not v2 fallbacks. Operations without a v2 equivalent remain legacy-only. See the Configure v2 migration guide.

Upload An In House App (Knox Library)

warning

Apps that are uploaded to the Knox Configure Library must have an arbitrarily different version.

For example, if an app called test has a version of 1.0.0, uploading the same version of test 1.0.0 to that endpoint will result in an error. Always check the version before attempting to upload.

To Upload the in house app (Knox Library) of KnoxConfigure, use the following methods.

Example​

import { KnoxInstance } from '@redredgroup/samsungknox-api';

const instance = new KnoxInstance({
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});

const uploadAnInHouseApp = await instance.kcContentManagementApplication.uploadAnInHouseApp({
args: {
name: '',
file: '',
}, // <- other optional param
});

console.log(uploadAnInHouseApp);

Input parameters:

  • args: Insert parameters for the upload in house app (required) name and file.
  • region: Insert the Knox region. Most of them are EU (case insensitive)
  • knoxAccessToken: Your X-KNOX-APITOKEN.

Output:

  • Responds with the results of the application upload.