{"id":3678,"date":"2018-10-16T10:38:26","date_gmt":"2018-10-16T10:38:26","guid":{"rendered":"http:\/\/34.238.172.127\/?page_id=43"},"modified":"2020-11-20T06:42:03","modified_gmt":"2020-11-20T06:42:03","slug":"edit-policy","status":"publish","type":"page","link":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/edit-policy\/","title":{"rendered":"Edit Policy"},"content":{"rendered":"<div class=\"method-copy\">\n<div class=\"method-copy-padding\">\n<h2> Edit Policy <\/h2>\n<p>Modify an existing policy.<\/p>\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\/policy\/{POLICY_ID}\/\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 '{ \"policyName\": \"Sales Team Policy\",\"Description\":\"\", \"ios\":{\"password\":{\"allow_simple\":true,\"force_pin\":true,\"forcePIN\":false,\"max_failed_attempts\":-1, \"max_grace_period\":-1,\"max_inactivity\":-1,\"max_pinage_in_days\":\"\",\"min_complex_chars\":-1,\"min_length\":-1,\"pin_history\":\"\",\"require_alphanumeric\":false},\"delete_credentials\":[]},\"ios_configured\":true }' https:\/\/<portal>.hexnodemdm.com\/api\/v1\/policy\/{POLICY_ID}\/  -X PUT\r\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Edit Policy Modify an existing policy. curl HTTP Request: PUT https:\/\/.hexnodemdm.com\/api\/v1\/policy\/{POLICY_ID}\/ Shell Command: curl -H &#8220;Authorization: &#8221; -H &#8220;Content-Type: application\/json&#8221; -d &#8216;{ &#8220;policyName&#8221;: &#8220;Sales Team Policy&#8221;,&#8221;Description&#8221;:&#8221;&#8221;, &#8220;ios&#8221;:{&#8220;password&#8221;:{&#8220;allow_simple&#8221;:true,&#8221;force_pin&#8221;:true,&#8221;forcePIN&#8221;:false,&#8221;max_failed_attempts&#8221;:-1, &#8220;max_grace_period&#8221;:-1,&#8221;max_inactivity&#8221;:-1,&#8221;max_pinage_in_days&#8221;:&#8221;&#8221;,&#8221;min_complex_chars&#8221;:-1,&#8221;min_length&#8221;:-1,&#8221;pin_history&#8221;:&#8221;&#8221;,&#8221;require_alphanumeric&#8221;:false},&#8221;delete_credentials&#8221;:[]},&#8221;ios_configured&#8221;:true }&#8217; https:\/\/.hexnodemdm.com\/api\/v1\/policy\/{POLICY_ID}\/ -X PUT<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3672,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-3678","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3678","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=3678"}],"version-history":[{"count":1,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3678\/revisions"}],"predecessor-version":[{"id":4007,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3678\/revisions\/4007"}],"up":[{"embeddable":true,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3672"}],"wp:attachment":[{"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/media?parent=3678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}