Category Filter
Add/Remove Apps
Add/remove apps to/from an app catalog.
Argument | Type | Description |
---|---|---|
add_apps | Integer array | Required. An array of app IDs |
remove_apps | Integer array | Required. An array of app IDs |
add_groups | Integer array | Required. An array of app group IDs |
remove_groups | Integer array | Required. An array of app group IDs |
Note: If add_apps and remove_apps contain the same IDs, then those IDs will be added to the catalog.
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 11 |
POST https://<portal>.hexnodemdm.com/api/v1/appcatalogues/{APPCATALOGUE_ID}/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "add_apps":[1,2,3], "remove_apps":[4], "add_groups":[1], "remove_groups":[2], }] |
Shell Command:
1 |
curl -H "Authorization:<your API key>" -H "Content-Type: application/json" -d '{ "add_apps":[1,2,3],"remove_apps":[4],"add_groups":[1],"remove_groups":[]}' https://<portal>.hexnodemdm.com/api/v1/appcatalogues/{APPCATALOGUE_ID}/ |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
{ "id": 1, "name": " ios apps ", "description": "ios store free apps", "created_time": "2017-05-22T13:59:23.118Z", "apps": [ { "id": 153, "name": "Angry", "publisher": "Rovio Entertainment Ltd", "category": "Entertainment", "price": "Free", "icon": "http://is5.mzstatic.com/image/thumb/Purple82/v4/88/95/cd/8895cd2f-e532-3792-2b95-3a949a916cf1/source/60x60bb.jpg" }, ... ], "app_groups": [ { "id": 1, "name": "ios app group", "description": "hello", "created_time": "2017-05-22T13:59:23.118Z", "apps": [ { "id": 1, "name": "Google Chrome – The Fast and Secure Web Browser", "publisher": "Google, Inc.", "category": "Utilities", "price": "Free", "icon": "http://is5.mzstatic.com/image/thumb/Purple91/v4/c1/e9/48/c1e948b2-d0ad-feaa-4cea-fec3ead8c409/source/60x60bb.jpg" }, ... ] } ] } |