{"id":3657,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=22"},"modified":"2021-11-25T09:32:04","modified_gmt":"2021-11-25T09:32:04","slug":"send-enrollment-request","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/users\/send-enrollment-request\/","title":{"rendered":"Send Enrollment Request"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Send Enrollment Request <\/h2>\n<p>Send enrollment request to a user.<\/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>Argument<\/strong> <\/th>\n<th width=\"10%\"> <strong>Type<\/strong> <\/th>\n<th width=\"30%\"> <strong>Description<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> ownership <\/td>\n<td>String<\/td>\n<td>Required. Specify the type of ownership, either <strong>personal<\/strong>, <strong>corporate<\/strong> or <strong>user_choice<\/strong><\/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\/\/users\/{USER_ID}\/send_request\/ \r\nheaders:-\r\nAuthorization: api key\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"ownership\": \"personal\"\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 '{ \"ownership\": \"personal\"}' https:\/\/<portal>.hexnodemdm.com\/api\/v1\/users\/{USER_ID}\/send_request\/ -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 200  \r\n{\"detail\": \"enrollment request sent successfully\"}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Send Enrollment Request Send enrollment request to a user. Argument Type Description ownership String Required. Specify the type of ownership, either personal, corporate or user_choice curl HTTP Request: POST https:\/\/.hexnodemdm.com\/api\/v1\/\/users\/{USER_ID}\/send_request\/ headers:- Authorization: api key Content-Type: application\/json Sample Post Data:- [{ &#8220;ownership&#8221;: &#8220;personal&#8221; }] Shell Command: curl -H &#8220;Authorization:&#8221; -H &#8220;Content-Type: application\/json&#8221; -d &#8216;{ &#8220;ownership&#8221;: &#8220;personal&#8221;}&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3651,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3657","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3657","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=3657"}],"version-history":[{"count":4,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3657\/revisions"}],"predecessor-version":[{"id":4655,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3657\/revisions\/4655"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3651"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}