Skip to main content
PUT
/
v1
/
ip_allowlists
UpdateIPAllowlist
curl --request PUT \
  --url https://api.incident.io/v1/ip_allowlists \
  --header 'Content-Type: application/json' \
  --data '
{
  "allowlist": [
    {
      "label": "London HQ",
      "value": "192.0.2.0"
    }
  ],
  "enabled": true,
  "version": 1
}
'
{
  "ip_allowlist": {
    "allowlist": [
      {
        "label": "London HQ",
        "value": "192.0.2.0"
      }
    ],
    "enabled": true,
    "updated_at": "2021-08-17T13:28:57.801578Z",
    "version": 1
  }
}

Body

application/json
allowlist
object[]
required

A list of IP addresses or CIDR prefixes to allow

Example:
[
{
"label": "London HQ",
"value": "192.0.2.0"
}
]
enabled
boolean
required

Whether this IP allowlist is enabled or not

Example:

true

version
integer<int64>
required

The version of this IP allowlist

Example:

1

Response

200 - application/json

OK response.

ip_allowlist
object
required
Example:
{
"allowlist": [
{
"label": "London HQ",
"value": "192.0.2.0"
}
],
"enabled": true,
"updated_at": "2021-08-17T13:28:57.801578Z",
"version": 1
}