v62
latestOpenAPI 3.1.0Dual (AGPL3.0, Commercial License Available)raw.githubusercontent.com2026-08-03211303932.5 KBSubnets
Update a subnet
Updates subnet properties. If the CIDR is being changed, validates that all existing ip_addresses on this subnet have IPs within the new CIDR range.
put/api/v1/subnets/{id}
Path parameters
idstring uuid required
Subnet ID
Request body
Example request
{
"cidr": "192.168.1.0/24",
"created_at": "2026-01-15T10:30:00Z",
"description": "Local area network",
"first_discovery_id": null,
"id": "550e8400-e29b-41d4-a716-446655440004",
"last_discovery_id": null,
"last_seen_at": "2026-01-15T10:30:00Z",
"lineage_id": null,
"name": "LAN",
"network_id": "550e8400-e29b-41d4-a716-446655440002",
"source": {
"type": "Manual"
},
"subnet_type": "Lan",
"tags": [],
"updated_at": "2026-01-15T10:30:00Z",
"valid_from": "2026-01-15T10:30:00Z",
"valid_to": null
}Response
Subnet updated
Example response
{
"data": {
"cidr": "192.168.1.0/24",
"created_at": "2026-01-15T10:30:00Z",
"description": "Local area network",
"first_discovery_id": null,
"id": "550e8400-e29b-41d4-a716-446655440004",
"last_discovery_id": null,
"last_seen_at": "2026-01-15T10:30:00Z",
"lineage_id": null,
"name": "LAN",
"network_id": "550e8400-e29b-41d4-a716-446655440002",
"source": {
"type": "Manual"
},
"subnet_type": "Lan",
"tags": [],
"updated_at": "2026-01-15T10:30:00Z",
"valid_from": "2026-01-15T10:30:00Z",
"valid_to": null
},
"meta": {
"api_version": 1,
"server_version": "0.17.7"
}
}