Whitelisting IP

Update whitelisted IP description

Update one whitelist entry’s description. Management REST on app-api.geonode.com.

Auth

curl -u "<username>:<password>" \
  -H "Content-Type: application/json" \
  -X PUT "https://app-api.geonode.com/api/configuration/active/whitelisted-ips" \
  -d '{"ip":"203.0.113.77","description":"docs-tmp-upd"}'

Request body

Flat object — not wrapped in ips:

FieldTypeRequired
ipstringyes
descriptionstringyes

Sending { "ips": [ ... ] } returns HTTP 400.

Response

HTTP 200:

{
  "data": [
    {
      "ip": "203.0.113.10",
      "description": "office",
      "_id": "<entry_id>"
    },
    {
      "ip": "203.0.113.77",
      "description": "docs-tmp-upd",
      "_id": "<entry_id_2>"
    }
  ],
  "message": {
    "title": "Updated",
    "body": "Whitelisted IPs updated.",
    "variant": "success"
  }
}

Was this page helpful?

On this page