Update Whitelisted IP Description
Updates the description of an existing whitelisted IP.
Update the description or label associated with a whitelisted IP address.
Request
curl -X PUT "https://app-api.geonode.com/api/configuration/active/whitelisted-ips" \
-H "Authorization: Basic base64(username:password)" \
-H "Content-Type: application/json" \
-d '{"ip":"161.142.148.150","description":"updated-description"}'Request Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
ip | string | Yes | The IP address to update |
description | string | Yes | The new description for the whitelisted IP |
Example Request Body
{
"ip": "161.142.148.150",
"description": "updated-description"
}Response
200 Success
The IP description has been successfully updated.
Response Fields
| Field | Type | Description |
|---|---|---|
data | array | A list of updated whitelisted IPs |
data[].ip | string | The IP address that was updated |
data[].description | string | The updated description for the whitelisted IP |
data[]._id | string | A unique identifier assigned to the whitelisted IP |
message | object | Provides status details about the update operation |
message.title | string | A short message indicating the status of the update |
message.body | string | A detailed message about the update operation |
message.variant | string | The status variant indicating success or failure |
Example Response
{
"data": [
{
"ip": "161.142.148.150",
"description": "just update",
"_id": "67a0a5bbb412ddaf6f139b3b"
}
],
"message": {
"title": "Updated",
"body": "Whitelisted IPs updated.",
"variant": "success"
}
}Error Responses
400 Bad Request
Invalid input data provided.
| Field | Type | Description |
|---|---|---|
error | string | Error message |
{
"error": "Invalid input data."
}401 Unauthorized
Invalid API credentials provided.
| Field | Type | Description |
|---|---|---|
error | string | Error message |
{
"error": "Unauthorized - Invalid API key or credentials."
}