---
updatedAt: 2025-09-18T22:02:08.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Update Zone

This API call updates the name of the zone or the SiteId that has an associated target.

> 📘 Clearing attribute values
>
> To unset or clear an attribute, set its value to `NULL`.

<br />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "management-api-2",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.kevel.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Adzerk-ApiKey",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/zone/{ZoneID}": {
      "put": {
        "summary": "Update Zone",
        "description": "This API call updates the name of the zone or the SiteId that has an associated target.",
        "operationId": "update-zone",
        "parameters": [
          {
            "name": "ZoneID",
            "in": "path",
            "description": "The ID of the Zone",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "Id",
                  "Name"
                ],
                "properties": {
                  "Id": {
                    "type": "integer",
                    "description": "ID of the Zone",
                    "format": "int32"
                  },
                  "Name": {
                    "type": "string",
                    "description": "Name of the Zone"
                  },
                  "SiteID": {
                    "type": "integer",
                    "description": "ID of the Site",
                    "format": "int32"
                  },
                  "IsDeleted": {
                    "type": "boolean",
                    "description": "If want to delete, set to `true`"
                  }
                }
              },
              "examples": {
                "JSON": {
                  "value": {
                    "Id": 98765,
                    "Name": "A Different Name",
                    "SiteId": 12345
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"Id\":98765,\n  \"Name\":\"A Different Name\",\n  \"SiteId\":12345,\n  \"IsDeleted\":false\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "Id": {
                      "type": "integer",
                      "example": 98765,
                      "default": 0
                    },
                    "Name": {
                      "type": "string",
                      "example": "A Different Name"
                    },
                    "SiteId": {
                      "type": "integer",
                      "example": 12345,
                      "default": 0
                    },
                    "IsDeleted": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl -X PUT -H \"X-Adzerk-ApiKey:$ADZERK_API_KEY\" \"https://api.kevel.co/v1/zone/12345\" --data-urlencode 'zone={ \"Id\":98765, \"Name\":\"A Different Name\", \"SiteId\":12345}'"
            },
            {
              "language": "javascript",
              "code": "const Adzerk = require('@adzerk/management-sdk');\nconst apiKey = process.env.ADZERK_API_KEY;\n\nasync function updateZone() {\n  let specifications = await Adzerk.fetchSpecifications();\n  let client = await Adzerk.buildClient({apiKey, specifications});\n\n  let zone = await client.run(\"zone\", \"update\", {id: 98765, name: \"A Different Name\"});\n  console.log(zone);\n}\n\nupdateZone();"
            },
            {
              "language": "ruby",
              "code": "require \"adzerk\"\n\ndef update_zone()\n    client = Adzerk::Client.new(ENV[\"ADZERK_API_KEY\"])\n    id = 12345\n    data = client.zones.get(id)\n    data[:name] = \"Updated Zone Name\"\n    pp client.zones.update(data)\nend\nupdate_zone()"
            }
          ],
          "samples-languages": [
            "curl",
            "javascript",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "X-Adzerk-Sdk-Version",
        "value": "Readme.io:ManagementAPI2"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```