Deleting IP Groups

You can remove more than one IP Group at a time by specifying more IDs in the array. The following is an additional field that is required with the delete action:

json

Array of IP Group IDs to be deleted

For example, here’s how you define the json field to remove a single IP Group:

[
 {
  "id": "16900032"
 }
]

This is the json field to remove multiple IP Groups:

[
 {
  "id": "16900032"
 },
 {
  "id": "16900033"
 }
]

Example API call:

curl --location  --insecure --request POST '{{scrutinizer}}/fcgi/scrut_fcgi.fcgi' \
--header 'Content-Type: application/json' \
--form 'authToken={{authToken}}' \
--form 'rm=ipgroups' \
--form 'action=delete' \
--form 'json=[
        {
        "id": "16900032"
        }
]'

JSON object returned:

{
  "processedCount": 1,
  "removed": [
      "16900006"
  ]
}