{"id":3367,"date":"2019-09-30T11:43:34","date_gmt":"2019-09-30T11:43:34","guid":{"rendered":"https:\/\/www.hexnode.com\/mobile-device-management\/api\/?page_id=3367"},"modified":"2021-11-26T05:11:30","modified_gmt":"2021-11-26T05:11:30","slug":"mark-as-disenrolled","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/actions\/mark-as-disenrolled\/","title":{"rendered":"Mark as disenrolled"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Mark as disenrolled <\/h2>\n<p>Mark a selected device as disenrolled.<\/p>\n<div class=\"note\">\n<b>Note:<\/b><\/p>\n<p> This action only works if you have initiated the disenrollment action on a device and the device is not yet disenrolled from the portal.<\/p>\n<p><br\/ >\n<\/div>\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>users<\/td>\n<td> Array <\/td>\n<td>Optional. IDs of the users<\/td>\n<\/tr>\n<tr>\n<td>usergroups<\/td>\n<td> Array <\/td>\n<td>Optional. IDs of the user groups<\/td>\n<\/tr>\n<tr>\n<td>devices<\/td>\n<td> Array <\/td>\n<td>Optional. IDs of the devices<\/td>\n<\/tr>\n<tr>\n<td>devicegroups<\/td>\n<td> Array <\/td>\n<td>Optional. IDs of the device groups<\/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\/actions\/mark_as_disenrolled\/\r\nheaders:-\r\nAuthorization: <api key>\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"users\":[1],\r\n\"usergroups\":[4],\r\n\"devices\":[5,6],\r\n\"devicegroups\":[12],\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 '{\"users\":[1],\"usergroups\":[4],\"devices\":[5,6],\"devicegroups\":[12]}'  https:\/\/<portal>.hexnodemdm.com\/api\/v1\/actions\/mark_as_disenrolled\/\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 200 ok\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mark as disenrolled Mark a selected device as disenrolled. Note: This action only works if you have initiated the disenrollment action on a device and the device is not yet disenrolled from the portal. Argument Type Description users Array Optional. IDs of the users usergroups Array Optional. IDs of the user groups devices Array Optional. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3698,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3367","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3367","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=3367"}],"version-history":[{"count":5,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3367\/revisions"}],"predecessor-version":[{"id":4662,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3367\/revisions\/4662"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3698"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}