Save/Update Device Realm With Policy Groups
1 min
POST
{{url}}/aioc-rest-web/rest/discovery/ui/saveDeviceRealmsWithPolicyGroups
urlstring
Content-Typestring
X-XSRF-TOKENstring
bodyobject
200saveDeviceRealmsWithPolicyGroups
curl --request POST \
--url {{url}}/aioc-rest-web/rest/discovery/ui/saveDeviceRealmsWithPolicyGroups \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{csrftoken}}' \
--data '"[\n {\n \"dbId\": null,\n \"name\": \"TEST_DeviceRealm_PG\",\n \"description\": \"TEST_DeviceRealm_PG\",\n \"deviceGroups\": [\n {\n \"dbId\": 303871,\n \"id\": \"feba5a25-7f1b-462e-bb45-711a27783cb0\"\n }\n ],\n \"userGroups\": [\n {\n \"id\": \"57888613-58bd-4008-af8a-729dc53edbed\",\n \"eid\": \"SshUG1\"\n }\n ],\n \"policyGroups\": [\n {\n \"dbId\": 12,\n \"name\": \"PG_SSH_Admins\"\n }\n ],\n \"policyKeyRealms\": []\n }\n]"'