{"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":"2026-06-26T07:44:02","modified_gmt":"2026-06-26T07:44:02","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<h1> Edit Policy <\/h1>\n<p>To edit an existing policy: <\/p>\n<ol>\n<li>Fetch the policy ID using either of the following methods:\n<ul>\n<li><strong>Console URL<\/strong>: Navigate to the specific policy in the Hexnode Console. The identifier is the numeric string embedded in the browser&#8217;s address bar (for example, the ID is 3638 in https:\/\/portalname.hexnodemdm.com\/policy\/#\/3638\/list\/)<\/li>\n<li><strong>API Call<\/strong>: Run the <a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/list-policies\/\" target=\"_blank\">List all Policies<\/a> endpoint to generate a complete list of your configurations alongside their respective IDs.<\/li>\n<\/ul>\n<\/li>\n<li>\nReplace <strong>{POLICY_ID}<\/strong> in the HTTP request with the retrieved policy ID. <\/li>\n<\/ol>\n<p><strong>Note<\/strong>: For each of the supported platforms, the attributes that can be edited are mentioned in the following pages: <\/p>\n<ul>\n<li><a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/ios-policies\/\" target=\"_blank\">iOS <\/a><\/li>\n<li><a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/android-policies\/\" target=\"_blank\">Android<\/a>  <\/li>\n<li><a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/macos-policies\/\" target=\"_blank\">macOS<\/a>  <\/li>\n<li><a href=\"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/policies\/windows-policies\/\" target=\"_blank\">Windows <\/a> <\/li>\n<\/ul>\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 To edit an existing policy: Fetch the policy ID using either of the following methods: Console URL: Navigate to the specific policy in the Hexnode Console. The identifier is the numeric string embedded in the browser&#8217;s address bar (for example, the ID is 3638 in https:\/\/portalname.hexnodemdm.com\/policy\/#\/3638\/list\/) API Call: Run the List all Policies [&hellip;]<\/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":9,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3678\/revisions"}],"predecessor-version":[{"id":5201,"href":"https:\/\/www.hexnode.com\/mobile-device-management\/developers\/wp-json\/wp\/v2\/pages\/3678\/revisions\/5201"}],"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}]}}