{"id":3669,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=34"},"modified":"2021-11-15T10:17:04","modified_gmt":"2021-11-15T10:17:04","slug":"update-device-group","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/device-groups\/update-device-group\/","title":{"rendered":"Update Device Group"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Update Device Group <\/h2>\n<p>Update a device group.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"10%\"> <strong>Arguments<\/strong> <\/th>\n<th width=\"10%\"> <strong>Type<\/strong> <\/th>\n<th width=\"25%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> groupname <\/td>\n<td> String <\/td>\n<td> Required. Name of the device group <\/td>\n<\/tr>\n<tr>\n<td> description <\/td>\n<td>String<\/td>\n<td>Required. Description for the group<\/td>\n<\/tr>\n<tr>\n<td> devices <\/td>\n<td>Integer array\t<\/td>\n<td>Optional. IDs of the devices<\/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\">PUT https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/ \r\nheaders:-\r\nAuthorization: <api key>\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"groupname\": \"iOS devices\",\r\n\"description\":\"Group of iOS devices\",\r\n\"devices\":[2,3,4],\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 '{ \"groupname\": \"Neil\",\"description\":\"description\",\"devices\":[1,2,3]}'  https:\/\/<portal>.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/ -X PUT\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\"groupname\": \"ios device group\", \r\n\"description\":\" \"ios devices group for apps\", \r\n\"devices\":[ \r\n{  \r\n\"id\": 1, \r\n\"name\": \"neil's ipad',  \r\n\"user_id\": 2, \r\n\"user_name\": \"neil\", \r\n\"model_name\": \"iPhone 4S\", \r\n\"platform\": \"ios\" \r\n}, \r\n] \r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Update Device Group Update a device group. Arguments Type Description groupname String Required. Name of the device group description String Required. Description for the group devices Integer array Optional. IDs of the devices curl HTTP Request: PUT https:\/\/.hexnodemdm.com\/api\/v1\/devicegroups\/{DEVICEGROUP_ID}\/ headers:- Authorization: Content-Type: application\/json Sample Post Data:- [{ &#8220;groupname&#8221;: &#8220;iOS devices&#8221;, &#8220;description&#8221;:&#8221;Group of iOS devices&#8221;, &#8220;devices&#8221;:[2,3,4], }] [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3665,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3669","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3669","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=3669"}],"version-history":[{"count":4,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3669\/revisions"}],"predecessor-version":[{"id":4621,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3669\/revisions\/4621"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3665"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}