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.
User API key (Bearer scp_u_...). Create in Platform > API Keys.
In: header
Path Parameters
Subnet ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/subnets/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "cidr": "192.168.1.0/24", "cidr_source": "DaemonSelfReport", "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, "virtualization_service_id": null }'{
"meta": {
"api_version": 1,
"server_version": "0.17.17"
},
"success": true,
"data": {
"cidr": "192.168.1.0/24",
"cidr_source": "DaemonSelfReport",
"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,
"virtualization_service_id": null
},
"error": "string"
}{
"meta": {
"api_version": 1,
"server_version": "0.17.17"
},
"success": true,
"code": "string",
"error": "string",
"params": {
"property1": null,
"property2": null
}
}{
"meta": {
"api_version": 1,
"server_version": "0.17.17"
},
"success": true,
"code": "string",
"error": "string",
"params": {
"property1": null,
"property2": null
}
}Merge a subnet into the range that contains it
Moves every address to the covering subnet and removes this one. Offered for a range Scanopy assumed that a later reading turned out to cover: discovery corrects such a range on its own only where the answer is unambiguous, and folding several assumed ranges into one means deleting rows, which is a person's call rather than a scan's.
Delete Subnet
Next Page