{"id":4045,"date":"2020-11-20T12:52:51","date_gmt":"2020-11-20T12:52:51","guid":{"rendered":"http:\/\/192.168.1.198:8888\/api-work\/?page_id=4045"},"modified":"2021-11-15T10:28:43","modified_gmt":"2021-11-15T10:28:43","slug":"add-remove-apps","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/app-catalogs\/add-remove-apps\/","title":{"rendered":"Add\/Remove Appss"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Add\/Remove Apps <\/h2>\n<p>Add\/remove apps to\/from an app catalog.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"15%\"> <strong>Argument<\/strong> <\/th>\n<th width=\"12%\"> <strong>Type<\/strong> <\/th>\n<th width=\"30%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> add_apps <\/td>\n<td> Integer array <\/td>\n<td>Required. An array of app IDs<\/td>\n<\/tr>\n<tr>\n<td> remove_apps <\/td>\n<td> Integer array <\/td>\n<td>Required. An array of app IDs<\/td>\n<\/tr>\n<tr>\n<td> add_groups <\/td>\n<td> Integer array <\/td>\n<td>Required. An array of app group IDs<\/td>\n<\/tr>\n<tr>\n<td> remove_groups <\/td>\n<td> Integer array <\/td>\n<td>Required. An array of app group IDs<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><strong>Note:<\/strong> If <strong>add_apps<\/strong> and <strong>remove_apps<\/strong> contain the same IDs, then those IDs will be added to the catalog.<\/p>\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">POST https:\/\/<portal>.hexnodemdm.com\/api\/v1\/appcatalogues\/{APPCATALOGUE_ID}\/\r\nheaders:-\r\nAuthorization: <api key>\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"add_apps\":[1,2,3],\r\n\"remove_apps\":[4],\r\n\"add_groups\":[1],\r\n\"remove_groups\":[2],\r\n}]\r\n<\/pre>\n<p>Shell Command:<\/p>\n<pre class=\"lang:default decode:true\">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}\/\r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\nHTTP Response:<\/p>\n<pre class=\"lang:default decode:true\">{\r\n\"id\": 1,\r\n\"name\": \" ios apps \",\r\n\"description\": \"ios store free apps\",\r\n\"created_time\": \"2017-05-22T13:59:23.118Z\",\r\n\"apps\": [\r\n{\r\n\"id\": 153,\r\n\"name\": \"Angry\",\r\n\"publisher\": \"Rovio Entertainment Ltd\",\r\n\"category\": \"Entertainment\",\r\n\"price\": \"Free\",\r\n\"icon\": \"http:\/\/is5.mzstatic.com\/image\/thumb\/Purple82\/v4\/88\/95\/cd\/8895cd2f-e532-3792-2b95-3a949a916cf1\/source\/60x60bb.jpg\"\r\n},\r\n...\r\n],\r\n\"app_groups\": [\r\n{\r\n\"id\": 1,\r\n\"name\": \"ios app group\",\r\n\"description\": \"hello\",\r\n\"created_time\": \"2017-05-22T13:59:23.118Z\",\r\n\"apps\": [\r\n{\r\n\"id\": 1,\r\n\"name\": \"Google Chrome \u2013 The Fast and Secure Web Browser\",\r\n\"publisher\": \"Google, Inc.\",\r\n\"category\": \"Utilities\",\r\n\"price\": \"Free\",\r\n\"icon\": \"http:\/\/is5.mzstatic.com\/image\/thumb\/Purple91\/v4\/c1\/e9\/48\/c1e948b2-d0ad-feaa-4cea-fec3ead8c409\/source\/60x60bb.jpg\"\r\n},\r\n...\r\n]\r\n}\r\n]\r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3693,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-4045","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=4045"}],"version-history":[{"count":5,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4045\/revisions"}],"predecessor-version":[{"id":4631,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4045\/revisions\/4631"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3693"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=4045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}