ScanopyScanopy
Subnets

Create a new subnet

POST
/api/v1/subnets
Authorization<token>

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

In: header

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

curl -X POST "https://loading/api/v1/subnets" \  -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"
}