> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update IP Allowlist

> Add more IP addresses to an existing allowlist record

Append additional IP addresses to your existing allowlist record. This operation **adds** to the existing list — it does not replace it.

```
PUT https://api.yativo.com/api/v1/ip/{id}
```

<Note>
  Requires an `Idempotency-Key` header.
</Note>

## Path parameters

<ParamField path="id" type="integer" required>
  The ID of the allowlist record to update.
</ParamField>

## Request body

<ParamField body="new_ip" type="array" required>
  Array of IPv4 address strings to add to the existing allowlist.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT 'https://api.yativo.com/api/v1/ip/1' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -H 'Idempotency-Key: ip-update-001' \
    -d '{
      "new_ip": ["203.0.113.20", "198.51.100.10"]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "message": "IP addresses updated and added to firewall."
  }
  ```
</ResponseExample>
