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

# Update Whitelisted IP Description

> Updates the description of an existing whitelisted IP.




## OpenAPI

````yaml api-reference/ref/update-whitelist-ip.yaml put /configuration/active/whitelisted-ips
openapi: 3.0.3
info:
  title: Active Whitelisted IPs API
  version: 1.0.0
  description: >
    API to update the description of a whitelisted IP.

    **Example Request:**

    ```sh 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"}'
    ```
servers:
  - url: https://app-api.geonode.com/api
security: []
paths:
  /configuration/active/whitelisted-ips:
    put:
      summary: Update Whitelisted IP Description
      description: |
        Updates the description of an existing whitelisted IP.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ip:
                  type: string
                  description: The IP address for which the description is being updated.
                  example: 161.142.148.150
                description:
                  type: string
                  description: The new description for the whitelisted IP.
                  example: updated-description
      responses:
        '200':
          description: Successfully updated whitelisted IPs.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: A list of updated whitelisted IPs.
                    items:
                      type: object
                      properties:
                        ip:
                          type: string
                          description: The IP address that was updated.
                          example: 161.142.148.150
                        description:
                          type: string
                          description: The updated description for the whitelisted IP.
                          example: just update
                        _id:
                          type: string
                          description: A unique identifier assigned to the whitelisted IP.
                          example: 67a0a5bbb412ddaf6f139b3b
                  message:
                    type: object
                    description: Provides status details about the update operation.
                    properties:
                      title:
                        type: string
                        description: A short message indicating the status of the update.
                        example: Updated
                      body:
                        type: string
                        description: A detailed message about the update operation.
                        example: Whitelisted IPs updated.
                      variant:
                        type: string
                        description: The status variant indicating success or failure.
                        example: success
        '400':
          description: Bad Request - Invalid input.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message.
                    example: Invalid input data.
        '401':
          description: Unauthorized - Invalid Credentials.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message.
                    example: Unauthorized - Invalid API key or credentials.
      security:
        - BasicAuth: []
      x-codeSamples:
        - lang: cURL
          source: >
            curl -X PUT
            "https://app-api.geonode.com/api/configuration/active/whitelisted-ips"
            \
              -H "Authorization: Basic {{credentials}}" \
              -H "Content-Type: application/json" \
              -d '{"ip": "161.142.148.150", "description": "updated-description"}'
components:
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: Basic authentication using username and password.

````