ScanopyScanopy
Subnets

Update a subnet

Updates subnet properties. If the CIDR is being changed, validates that all existing interfaces on this subnet have IPs within the new CIDR range.

PUT
/api/v1/subnets/{id}
Authorization<token>

User API key (Bearer scp_u_...). Create in Platform > API Keys.

In: header

Path Parameters

id*string

Subnet ID

Formatuuid

Request Body

application/json

cidr*string
name*string
network_id*string
Formatuuid
source*||||

Will be automatically set to Manual for creation through API

subnet_type*string
Value in"Internet" | "Remote" | "Gateway" | "VpnTunnel" | "Dmz" | "Lan" | "WiFi" | "IoT" | "Guest" | "DockerBridge" | "MacVlan" | "IpVlan" | "Management" | "Storage" | "Unknown" | "None"
tags*array<string>
description?string|null

Response Body

application/json

application/json

application/json

curl -X PUT "https://loading/api/v1/subnets/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "cidr": "192.168.1.0/24",    "created_at": "2026-01-15T10:30:00Z",    "description": "Local area network",    "id": "550e8400-e29b-41d4-a716-446655440004",    "name": "LAN",    "network_id": "550e8400-e29b-41d4-a716-446655440002",    "source": {      "type": "Manual"    },    "subnet_type": "Lan",    "tags": [],    "updated_at": "2026-01-15T10:30:00Z"  }'
{
  "meta": {
    "api_version": 1,
    "server_version": "0.13.5"
  },
  "success": true,
  "data": {
    "cidr": "192.168.1.0/24",
    "created_at": "2026-01-15T10:30:00Z",
    "description": "Local area network",
    "id": "550e8400-e29b-41d4-a716-446655440004",
    "name": "LAN",
    "network_id": "550e8400-e29b-41d4-a716-446655440002",
    "source": {
      "type": "Manual"
    },
    "subnet_type": "Lan",
    "tags": [],
    "updated_at": "2026-01-15T10:30:00Z"
  },
  "error": "string"
}
{
  "success": true,
  "error": "string"
}
{
  "success": true,
  "error": "string"
}