# Add addresses to an IP group

`POST https://console.advinservers.com/api/v1/client/ip-groups/{firewallIpGroup}/entries`

### Overview

Adds IPv4 or IPv6 addresses and CIDR ranges. Send `value` as one entry or several separated by commas, spaces or new lines. An optional `comment` is saved with every new entry. Express address spans such as `203.0.113.4-203.0.113.9` as CIDR ranges instead. A CIDR range must start at its network's first address, and `0.0.0.0/0` or `::/0` cannot be added; a rule with no source already matches every address. A `/32` or `/128` suffix is dropped and IPv6 is saved in its short form.

Existing entries are skipped, including the same address written another way. A group can hold up to 2048 entries. Returns the updated group and applies changes to affected servers in the background.

### Permissions

Requires the `firewall.update` (Change the firewall) permission for the selected team. Resources outside that team return 404.

## Authorization

Send `Authorization: Bearer <token>` with the request. Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

## Path parameters

- `firewallIpGroup` (string, required): The firewall ip group uuid short

## Body

Sent as `application/json`.

- `value` (string, required): The value of `value`. At most 94208 characters
- `comment` (string | null): The value of `comment`. At most 255 characters

## Response 200

The record, as a JSON object. There is no envelope.

- `id` (string, required): The id ID.
- `uuid_short` (string, required): The value of `uuid_short`.
- `name` (string, required): The name shown to customers.
- `is_default` (boolean, required): A list every account shares and only staff change, so it cannot be renamed, edited or deleted here.
- `entries` (object[], required): The value of `entries`.
  - `id` (string, required): The id ID.
  - `uuid_short` (string, required): The value of `uuid_short`.
  - `value` (string, required): The value of `value`.
  - `comment` (string | null, required): What the customer wrote down about why this address is on the list.
- `rules_count` (integer, required): How many firewall rules point at this group - what makes it unsafe to delete, so the list needs it even without the detail below.
- `created_at` (string | null, required): The date and time for created at, in UTC.
- `used_by` (object[] | null): Which firewall groups use this one, named.
  - `id` (string, required): The id ID.
  - `uuid_short` (string, required): The value of `uuid_short`.
  - `name` (string, required): The name shown to customers.
  - `rules_count` (integer, required): The number of rules count.

```json
{
  "id": "145e6e6f-a6b0-4b9e-9060-2d4f017baff8",
  "uuid_short": "Uuid short",
  "name": "Sector C lab",
  "is_default": false,
  "entries": [
    {
      "id": "90c1a65c-b273-44a4-ae39-9f9e3c08c8b7",
      "value": "192.0.2.0/28",
      "comment": "Anomalous Materials test lab LAN"
    },
    {
      "id": "936a228e-b576-4779-892b-ac30590dbe18",
      "value": "192.0.2.44",
      "comment": "Black Mesa VPN gateway"
    },
    {
      "id": "5e7a4e1f-ddd7-4c3a-90d0-777c8fd2d78c",
      "value": "192.0.2.97",
      "comment": "Lambda Complex field terminals"
    },
    {
      "id": "ea38e96a-fcf8-4bf4-a31c-01daeb9a2ba8",
      "value": "192.0.2.98",
      "comment": "Lambda Complex field terminals"
    }
  ],
  "rules_count": 1,
  "created_at": "2026-03-02T19:24:51+00:00",
  "used_by": [
    {
      "id": "72a4a737-236f-456f-827f-6145d9c95727",
      "name": "Lambda Complex ingress",
      "rules_count": 1
    }
  ]
}
```

## Errors

- `401`: The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- `403`: Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- `404`: The resource was not found in the selected team. Resources in another account or team also return 404.
- `422`: A field is missing or invalid, or the resource cannot accept this change in its current state. Check `message` for details. Field validation also includes an `errors` object keyed by field name.
- `429`: Too many requests. The `Retry-After` header says how many seconds to wait. Limits are per account, so several keys on one account share them.

## Example request

```bash
curl --request POST \
  --url 'https://console.advinservers.com/api/v1/client/ip-groups/{firewallIpGroup}/entries' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "192.0.2.97, 192.0.2.98",
  "comment": "Lambda Complex field terminals"
}'
```
