{"id":4713,"date":"2022-06-30T06:11:48","date_gmt":"2022-06-30T06:11:48","guid":{"rendered":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/?page_id=4713"},"modified":"2022-07-01T05:36:30","modified_gmt":"2022-07-01T05:36:30","slug":"update-web-app","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/applications\/update-web-app\/","title":{"rendered":"Update Web App"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2>Update Web App<\/h2>\n<p>Update a web app present in the Hexnode app repository.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" class=\"table table-bordered\" width=\"50%\">\n<thead>\n<tr>\n<th width=\"10%\"><strong>Argument<\/strong><\/th>\n<th width=\"10%\"><strong>Type<\/strong><\/th>\n<th width=\"15%\"><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>name<\/td>\n<td>String<\/td>\n<td><strong>Required<\/strong>. Name of the app.<\/td>\n<\/tr>\n<tr>\n<td>app_type<\/td>\n<td>String<\/td>\n<td><strong>Required<\/strong>. Use <strong>web<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td>webapp_url<\/td>\n<td>String<\/td>\n<td><strong>Required<\/strong>. URL for the web app.<\/td>\n<\/tr>\n<tr>\n<td>category<\/td>\n<td>String<\/td>\n<td><strong>Required<\/strong>. Category for the app. For example, entertainment<\/td>\n<\/tr>\n<tr>\n<td>icon<\/td>\n<td>String<\/td>\n<td><strong>Required<\/strong>. URL or base64 encoded data of the icon<\/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\">\n<p>HTTP Request:<\/p>\n<pre class=\"lang:default decode:true\">PUT https:\/\/.hexnodemdm.com\/api\/v1\/applications\/{app_id}\/ \r\nheaders:-\r\nAuthorization: \r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"name\":\"Hexnode\", \r\n\"app_type\":\"web\", \r\n\"webapp_url\":\" https:\/\/www.hexnode.com\/\", \r\n\"category\":\"Marketing\", \r\n\"icon\":\" data:image\/jpeg;base64..... \", \r\n}]\r\n\r\n<\/pre>\n<p>Shell Command<\/p>\n<pre class=\"lang:default decode:true \">curl -X PUT -H 'Authorization: &lt;your API key&gt;' -H 'Content-Type: application\/json' -d \r\n'{  \r\n\"name\":\"Hexnode\", \r\n\"app_type\":\"web\", \r\n\"webapp_url\":\" https:\/\/www.hexnode.com\/\", \r\n\"icon\":\"data:image\/jpeg;base64..... \", \r\n\"category\":\"Marketing\", \r\n}' https:\/\/.hexnodemdm.com\/api\/v1\/applications\/{app_id}\/ \r\n<\/pre>\n<\/div>\n<\/div>\n<div class=\"code-curl code-div active-code\">\n<div class=\"method-example-part\">\n<p>HTTP Response:<\/p>\n<pre class=\"lang:default decode:true\"> {\r\nHTTP\/1.1 201 Created\r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Update Web App Update a web app present in the Hexnode app repository. Argument Type Description name String Required. Name of the app. app_type String Required. Use web. webapp_url String Required. URL for the web app. category String Required. Category for the app. For example, entertainment icon String Required. URL or base64 encoded data of [&hellip;]<\/p>\n","protected":false},"author":2,"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-4713","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4713","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/comments?post=4713"}],"version-history":[{"count":16,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4713\/revisions"}],"predecessor-version":[{"id":4730,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/4713\/revisions\/4730"}],"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=4713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}