{"id":3655,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=20"},"modified":"2021-11-05T04:35:12","modified_gmt":"2021-11-05T04:35:12","slug":"edit-user","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/users\/edit-user\/","title":{"rendered":"Edit User"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Edit User <\/h2>\n<p>Edit the user details.<\/p>\n<div class=\"table-responsive\">\n<table id=\"table_61516733\" width=\"100%\" class=\"table table-bordered\">\n<thead>\n<tr>\n<th width=\"12%\"> <strong>Argument<\/strong> <\/th>\n<th width=\"10%\"> <strong>Type<\/strong> <\/th>\n<th width=\"15%\"> <strong>Description<\/strong> <\/th>\n<th width=\"15%\"> <strong>Default value<\/strong> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td> name <\/td>\n<td>String<\/td>\n<td>Required. The display name of the user<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> email <\/td>\n<td>String<\/td>\n<td>Required. Unique email address of the user<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td> phoneno <\/td>\n<td>Integer<\/td>\n<td>Optional. The contact number of the user<\/td>\n<td>null<\/td>\n<\/tr>\n<tr>\n<td> password <\/td>\n<td> String <\/td>\n<td> Optional. User password <\/td>\n<td>null<\/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\/users\/{USER_ID}\/\r\nheaders:-\r\nAuthorization: api key\r\nContent-Type: application\/json\r\nSample Post Data:-\r\n[{\r\n\"name\": \"Neil\",\r\n\"email\":\"neil@hexnode.com\", \r\n\"phoneno\":\"18664989407\",\r\n\"password\":\"admin\",\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\": \"Neil\",\"email\":\"neil@hexnode.com\", \"phoneno\":\"18664989407\",\"password\":\"admin\" }' https:\/\/<portal>.hexnodemdm.com\/api\/v1\/users\/<USER_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\">HTTP\/1.1 200 ok { \r\n\"id\": 13, \r\n\"name\": \"Neil\", \r\n\"email\": \"neil@hexnode.com\", \r\n\"phoneno\": \"18664989407\", \r\n\"alternate_email\": null, \r\n\"password\": \"admin\"\r\n}\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Edit User Edit the user details. Argument Type Description Default value name String Required. The display name of the user email String Required. Unique email address of the user phoneno Integer Optional. The contact number of the user null password String Optional. User password null curl HTTP Request: PUT https:\/\/.hexnodemdm.com\/api\/v1\/users\/{USER_ID}\/ headers:- Authorization: api key Content-Type: [&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-3655","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3655","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=3655"}],"version-history":[{"count":4,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3655\/revisions"}],"predecessor-version":[{"id":4611,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3655\/revisions\/4611"}],"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=3655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}