ScanopyScanopy
Topology

Lock a topology

POST
/api/v1/topology/{id}/lock
Authorization<token>

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

In: header

Path Parameters

id*string

Topology ID

Formatuuid

Response Body

application/json

application/json

application/json

curl -X POST "https://loading/api/v1/topology/497f6eca-6276-4993-bfeb-53cbbbba6f08/lock"
{
  "meta": {
    "api_version": 1,
    "server_version": "0.13.5"
  },
  "success": true,
  "data": {
    "bindings": [
      {
        "created_at": "2026-01-12T14:59:13.659385Z",
        "id": "1debd424-12b4-4433-9923-1700e080c4b4",
        "interface_id": "550e8400-e29b-41d4-a716-446655440005",
        "network_id": "550e8400-e29b-41d4-a716-446655440002",
        "port_id": "550e8400-e29b-41d4-a716-446655440006",
        "service_id": "550e8400-e29b-41d4-a716-446655440007",
        "type": "Port",
        "updated_at": "2026-01-12T14:59:13.659385Z"
      }
    ],
    "edges": [
      {
        "edge_type": "Interface",
        "host_id": "eb4e20fc-2b4a-4d0c-811f-48abcf12b89b",
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "is_multi_hop": true,
        "label": "string",
        "source": "07b8e003-7027-443f-88b0-24a5eb1cc68b",
        "source_handle": "Top",
        "target": "65a17d54-9c67-4477-8b80-d3f97e165aa5",
        "target_handle": "Top"
      }
    ],
    "groups": [
      {
        "binding_ids": [],
        "color": "Blue",
        "created_at": "2026-01-15T10:30:00Z",
        "description": "HTTP/HTTPS services group",
        "edge_style": "Bezier",
        "group_type": "RequestPath",
        "id": "550e8400-e29b-41d4-a716-446655440008",
        "name": "Web Services",
        "network_id": "550e8400-e29b-41d4-a716-446655440002",
        "source": {
          "type": "Manual"
        },
        "tags": [],
        "updated_at": "2026-01-15T10:30:00Z"
      }
    ],
    "hosts": [
      {
        "created_at": "2026-01-15T10:30:00Z",
        "description": "Primary web server",
        "hidden": false,
        "hostname": "web-server-01.local",
        "id": "550e8400-e29b-41d4-a716-446655440003",
        "name": "web-server-01",
        "network_id": "550e8400-e29b-41d4-a716-446655440002",
        "source": {
          "type": "Manual"
        },
        "tags": [],
        "updated_at": "2026-01-15T10:30:00Z",
        "virtualization": null
      }
    ],
    "interfaces": [
      {
        "created_at": "2026-01-15T10:30:00Z",
        "host_id": "550e8400-e29b-41d4-a716-446655440003",
        "id": "550e8400-e29b-41d4-a716-446655440005",
        "ip_address": "192.168.1.100",
        "mac_address": "DE:AD:BE:EF:12:34",
        "name": "eth0",
        "network_id": "550e8400-e29b-41d4-a716-446655440002",
        "position": 0,
        "subnet_id": "550e8400-e29b-41d4-a716-446655440004",
        "updated_at": "2026-01-15T10:30:00Z"
      }
    ],
    "is_locked": true,
    "is_stale": true,
    "last_refreshed": "2019-08-24T14:15:22Z",
    "name": "string",
    "network_id": "d6797cf4-42b9-4cad-8591-9dd91c3f0fc3",
    "nodes": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "infra_width": 0,
        "node_type": "SubnetNode",
        "position": {
          "x": 0,
          "y": 0
        },
        "size": {
          "x": 0,
          "y": 0
        },
        "header": "string"
      }
    ],
    "options": {
      "local": {
        "hide_edge_types": [
          "Interface"
        ],
        "hide_resize_handles": true,
        "left_zone_title": "string",
        "no_fade_edges": true
      },
      "request": {
        "group_docker_bridges_by_host": true,
        "hide_ports": true,
        "hide_service_categories": [
          "NetworkCore"
        ],
        "hide_vm_title_on_docker_container": true,
        "left_zone_service_categories": [
          "NetworkCore"
        ],
        "show_gateway_in_left_zone": true
      }
    },
    "ports": [
      {
        "created_at": "2026-01-15T10:30:00Z",
        "host_id": "550e8400-e29b-41d4-a716-446655440003",
        "id": "550e8400-e29b-41d4-a716-446655440006",
        "network_id": "550e8400-e29b-41d4-a716-446655440002",
        "number": 80,
        "protocol": "Tcp",
        "type": "Http",
        "updated_at": "2026-01-15T10:30:00Z"
      }
    ],
    "removed_bindings": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "removed_groups": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "removed_hosts": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "removed_interfaces": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "removed_ports": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "removed_services": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "removed_subnets": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "services": [
      {
        "bindings": [
          {
            "created_at": "2026-01-12T14:59:13.659334Z",
            "id": "17e02403-98fe-4406-8133-df42a43de7de",
            "interface_id": "550e8400-e29b-41d4-a716-446655440005",
            "network_id": "550e8400-e29b-41d4-a716-446655440002",
            "port_id": "550e8400-e29b-41d4-a716-446655440006",
            "service_id": "550e8400-e29b-41d4-a716-446655440007",
            "type": "Port",
            "updated_at": "2026-01-12T14:59:13.659334Z"
          }
        ],
        "created_at": "2026-01-15T10:30:00Z",
        "host_id": "550e8400-e29b-41d4-a716-446655440003",
        "id": "550e8400-e29b-41d4-a716-446655440007",
        "name": "nginx",
        "network_id": "550e8400-e29b-41d4-a716-446655440002",
        "position": 0,
        "service_definition": "Remote Desktop",
        "source": {
          "type": "Manual"
        },
        "tags": [],
        "updated_at": "2026-01-15T10:30:00Z",
        "virtualization": null
      }
    ],
    "subnets": [
      {
        "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"
      }
    ],
    "tags": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ],
    "locked_at": "2019-08-24T14:15:22Z",
    "locked_by": "7894ceea-9d1b-4c9c-9c58-84a3183301e7",
    "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
    "created_at": "2019-08-24T14:15:22Z",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "error": "string"
}
{
  "success": true,
  "error": "string"
}
{
  "success": true,
  "error": "string"
}