---
title: "Update an IP address
Position must be within valid range and not conflict with other IP addresses."
method: PUT
path: "/api/v1/ip-addresses/{id}"
tags: ["IP Addresses"]
---

# Update an IP address
Position must be within valid range and not conflict with other IP addresses.

`PUT /api/v1/ip-addresses/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- IPAddress
  - `host_id` string, uuid, required — The host this entity belongs to.
  - `ip_address` string, required — IPv4 or IPv6 address.
  - `mac_address` string, nullable — MAC address discovered from ARP, SNMP, or Docker - immutable once set
  - `name` string, nullable, required — Human-facing name for this IP address.
  - `network_id` string, uuid, required — The network this entity belongs to.
  - `position` integer — Position of this IP address in the host's IP address list (for ordering)
  - `subnet_id` string, uuid, required — The subnet this entity belongs to.
  - `created_at` string, date-time, required — When this record was first created.
  - `first_discovery_id` string, uuid, nullable — The discovery that first observed this entity.
  - `id` string, uuid, required — Server-assigned unique identifier.
  - `last_discovery_id` string, uuid, nullable — The most recent discovery that observed this entity.
  - `last_seen_at` string, date-time — When a discovery last observed this entity.
  - `lineage_id` string, uuid, nullable — Stable identifier shared by every revision of the same entity across its history.
  - `updated_at` string, date-time, required — When this record was last modified.
  - `valid_from` string, date-time — Start of the interval this revision was current for (SCD2 history).
  - `valid_to` string, date-time, nullable — End of the interval this revision was current for. `null` while it is the live revision.

## Response `200`

IP address updated successfully

- ApiResponseIPAddress
  - `data` object — The result payload. Omitted on failure.
    - `host_id` string, uuid, required — The host this entity belongs to.
    - `ip_address` string, required — IPv4 or IPv6 address.
    - `mac_address` string, nullable — MAC address discovered from ARP, SNMP, or Docker - immutable once set
    - `name` string, nullable, required — Human-facing name for this IP address.
    - `network_id` string, uuid, required — The network this entity belongs to.
    - `position` integer — Position of this IP address in the host's IP address list (for ordering)
    - `subnet_id` string, uuid, required — The subnet this entity belongs to.
    - `created_at` string, date-time, required — When this record was first created.
    - `first_discovery_id` string, uuid, nullable — The discovery that first observed this entity.
    - `id` string, uuid, required — Server-assigned unique identifier.
    - `last_discovery_id` string, uuid, nullable — The most recent discovery that observed this entity.
    - `last_seen_at` string, date-time — When a discovery last observed this entity.
    - `lineage_id` string, uuid, nullable — Stable identifier shared by every revision of the same entity across its history.
    - `updated_at` string, date-time, required — When this record was last modified.
    - `valid_from` string, date-time — Start of the interval this revision was current for (SCD2 history).
    - `valid_to` string, date-time, nullable — End of the interval this revision was current for. `null` while it is the live revision.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `400` — Network mismatch or invalid request
- `404` — IP address not found

## Changes

- **2026-07-29** `51af15be596e` — 1 breaking, 1 info
  - added the pattern `^(?:[0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}$` to the request property `allOf[#/components/schemas/IPAddressBase]/mac_address`
  - the `data/allOf[#/components/schemas/IPAddressBase]/mac_address` response's property pattern `^(?:[0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}$` was added for the status `200`
- **2026-05-03** `d38c20597ec1` — 6 info
  - added the optional property `data/allOf[subschema #2]/first_discovery_id` to the response with the `200` status
  - added the optional property `data/allOf[subschema #2]/last_discovery_id` to the response with the `200` status
  - added the optional property `data/allOf[subschema #2]/last_seen_at` to the response with the `200` status
  - added the optional property `data/allOf[subschema #2]/lineage_id` to the response with the `200` status
  - …2 more
- **2026-04-20** `f04499e2280f` — 6 warning
  - removed the optional property `data/allOf[subschema #2]/first_discovery_id` from the response with the `200` status
  - removed the optional property `data/allOf[subschema #2]/last_discovery_id` from the response with the `200` status
  - removed the optional property `data/allOf[subschema #2]/last_seen_at` from the response with the `200` status
  - removed the optional property `data/allOf[subschema #2]/lineage_id` from the response with the `200` status
  - …2 more

[Change history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/ip-addresses/:id/put.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/b4189fccca72/schema)
