Save New Device Groups
1 min
POST
{{url}}/aioc-rest-web/rest/discovery/saveDeviceGroups
urlstring
Content-Typestring
X-XSRF-TOKENstring
bodyobject
200saveDeviceGroups
curl --request POST \
--url {{url}}/aioc-rest-web/rest/discovery/saveDeviceGroups \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-xsrf-token: {{csrftoken}}' \
--data '"[{\n\n \"name\": \"TESTDG_Test\",\n \"description\": \"TESTDG_Test\",\n \"parentGroupId\": null,\n \"ifaceOperationCheck\": false,\n \"timeTolerance\": null,\n \"realms\": [\n 3478516\n ],\n \"deviceIds\": [\n 173076\n ],\n \"properties\": {\n \"globalPassword\": \"123123\",\n \"globalUsername\": \"admin\"\n },\n \"children\": null,\n \"devices\": null,\n \"showInDeviceTree\": true,\n \"useAsRoleGroup\": true,\n \"rootGroupId\": null,\n \"discoverySources\": null,\n \"readOnly\": false\n }]"'