Fortinet black logo

Administration Guide

Add or update a group

Copy Link
Copy Doc ID 825689eb-200d-11e9-b6f6-f8bc1258b856:980455
Download PDF

Add or updates a group.

https://<servername>:8443/api/group

Return Value: status

Example Request

curl -k -u '<username>:<password>' -H "content-type: application/json" -X POST -d '{"id":1,"members":[{"id":1},{"id":6},{"id":17},{"id":22},{"id":21}],"childGroups":[]}' https://<servername>:8443/api/group

Example Response

SUCCESS

Add or updates a group.

https://<servername>:8443/api/group

Return Value: status

Example Request

curl -k -u '<username>:<password>' -H "content-type: application/json" -X POST -d '{"id":1,"members":[{"id":1},{"id":6},{"id":17},{"id":22},{"id":21}],"childGroups":[]}' https://<servername>:8443/api/group

Example Response

SUCCESS