Category Filter
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’s address bar (for example, the ID is 3638 in https://portalname.hexnodemdm.com/policy/#/3638/list/)
- API Call: Run the List all Policies endpoint to generate a complete list of your configurations alongside their respective IDs.
- Replace {POLICY_ID} in the HTTP request with the retrieved policy ID.
Note: For each of the supported platforms, the attributes that can be edited are mentioned in the following pages:
curl
HTTP Request:
Shell Command:
|
1 |
PUT https://<portal>.hexnodemdm.com/api/v1/policy/{POLICY_ID}/ |
Shell Command:
|
1 |
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 |