{"id":3683,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=48"},"modified":"2022-06-27T10:15:25","modified_gmt":"2022-06-27T10:15:25","slug":"add-app-to-list","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/applications\/add-app-to-list\/","title":{"rendered":"Add App to List"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Add App to List <\/h2>\n<p>Add a new app to the existing list of applications.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"22%\"> <strong>Argument<\/strong> <\/th>\n<th width=\"10%\"> <strong>Type<\/strong> <\/th>\n<th width=\"30%\"> <strong>Description<\/strong> <\/th>\n<th width=\"10%\"> <strong>Default value<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> name <\/td>\n<td> String <\/td>\n<td>Required. Name of the app<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> app_type <\/td>\n<td> String <\/td>\n<td>Required. Use <strong>store<\/strong> or <strong>web<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> platform <\/td>\n<td> String <\/td>\n<td>Required. Use <b>ios<\/b> for App Store app search and <b>android<\/b> for Play Store app search<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> price <\/td>\n<td> String <\/td>\n<td>Optional. For example, $5<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> category <\/td>\n<td> String <\/td>\n<td>Required. Category for the app. For example, entertainment\t<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> vendor <\/td>\n<td> String <\/td>\n<td> Optional <\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> icon <\/td>\n<td> String <\/td>\n<td>Required. URL or base64 encoded data of the icon<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> average_user_rating <\/td>\n<td> String <\/td>\n<td>Optional. For example, rating 3 out of 5\t<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>content_rating\t<\/td>\n<td> String <\/td>\n<td>Optional<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> remove_with_mdm <\/td>\n<td> Boolean <\/td>\n<td>Optional<\/td>\n<td> false <\/td>\n<\/tr>\n<tr>\n<td>prevent_backup\t<\/td>\n<td> Boolean <\/td>\n<td>Optional<\/td>\n<td> true <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>If <strong>app_type<\/strong> is set to <em>store<\/em> and <strong>platform<\/strong> to <em>ios<\/em>, the following keys are also supported:<\/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=\"15%\"> <strong>Type<\/strong> <\/th>\n<th width=\"40%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> identifier <\/td>\n<td> String <\/td>\n<td>Required. Identifier of the app. For example, com.hexnode.hexnodeMDM\n<\/td>\n<\/tr>\n<tr>\n<td>appstore_id<\/td>\n<td> Integer <\/td>\n<td>Required. App Store ID of the app<\/td>\n<\/tr>\n<tr>\n<td> version <\/td>\n<td> String <\/td>\n<td>Required. The version of the app<\/td>\n<\/tr>\n<tr>\n<td> bundle_size <\/td>\n<td> Float <\/td>\n<td>Required. The size of the app<\/td>\n<\/tr>\n<tr>\n<td> description <\/td>\n<td> String <\/td>\n<td>Required. Values can be null<\/td>\n<\/tr>\n<tr>\n<td> primaryGenreId <\/td>\n<td> Integer <\/td>\n<td>Required. Value can be null<\/td>\n<\/tr>\n<tr>\n<td>appstore_ulr<\/td>\n<td> Integer <\/td>\n<td>Required. URL for the app in the App Store<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>If <strong>app_type<\/strong> is set to <em>store<\/em> and <strong>platform<\/strong> to <em>android<\/em>, the following keys might also be required:<\/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=\"15%\"> <strong>Type<\/strong> <\/th>\n<th width=\"40%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> identifier <\/td>\n<td> String <\/td>\n<td>Required. Identifier of the app<\/td>\n<\/tr>\n<tr>\n<td> version <\/td>\n<td> String <\/td>\n<td>Optional. The version of the app<\/td>\n<\/tr>\n<tr>\n<td> bundle_size <\/td>\n<td> Float <\/td>\n<td>Optional. Size of the app<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>If <strong>app_type<\/strong> is set to <em>web<\/em>, the following keys are supported:<\/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=\"15%\"> <strong>Type<\/strong> <\/th>\n<th width=\"40%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> webapp_url <\/td>\n<td> String <\/td>\n<td>Required. URL for the web app<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"method-example\">\n<div class=\"curl-text\">curl<\/div>\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\/applications\/\r\nheaders:-\r\nAuthorization: <api key>\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"name\":\"Google\",\r\n\"app_type\":\"store\",\r\n\"platform\":\"android\",\r\n\"identifier\":\"com.google.android.googlequicksearchbox\",\r\n\"version\":\"4.0.1\",\r\n\"price\":\"Free\",\r\n\"remove_with_mdm\":true,\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 '{  \"name\":\"Google\",\"app_type\":\"store\",\"platform\":\"android\",\"identifier\":\"com.google.android.googlequicksearchbox\",\"version\":\"4.0.1\",\"category\":\"search\",\"icon\":iconurl\r\n}' https:\/\/<portal>.hexnodemdm.com\/api\/v1\/applications\/ -X POST\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\">HTTP\/1.1 201 Created\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Add App to List Add a new app to the existing list of applications. Argument Type Description Default value name String Required. Name of the app app_type String Required. Use store or web platform String Required. Use ios for App Store app search and android for Play Store app search price String Optional. For example, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3680,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3683","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3683","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=3683"}],"version-history":[{"count":13,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3683\/revisions"}],"predecessor-version":[{"id":4712,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3683\/revisions\/4712"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3680"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}