---
title: "Update a node's size and position"
method: POST
path: "/api/v1/topology/{id}/node-resize"
tags: ["Topologies", "internal"]
---

# Update a node's size and position

`POST /api/v1/topology/{id}/node-resize`

Lightweight endpoint for subnet resize operations. Instead of sending the entire
topology, only sends the node ID, new size, and new position.
Fixes HTTP 413 errors on resize operations for large topologies.

## Path parameters

- `id` string, uuid, required

## Request body

- TopologyNodeResizeUpdate — Lightweight request type for updating a node's size and position. Used for subnet resize operations - instead of sending the entire topology, only sends the node ID, new size, and new position. Fixes HTTP 413 errors on resize operations.
  - `network_id` string, uuid, required — Network ID for authorization
  - `node_id` string, uuid, required — ID of the node to update
  - `position` Ixy, required
    - `x` integer, required
    - `y` integer, required
  - `size` Uxy, required — 2D unsigned coordinate. Used for node positions and sizes. Element node sizes are computed by the frontend (elkjs); the backend sets `Uxy::default()` for element nodes.
    - `x` integer, required
    - `y` integer, required

## Response `200`

Node resized

- ApiResponse
  - `data` TupleUnit — unresolved $ref
  - `error` string, nullable
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required

## Other responses

- `403` — Access denied
- `404` — Topology or node not found

## Changes

- **2026-04-20** `f04499e2280f` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/v1/topology/:id/node-resize/post.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/f04499e2280f/schema)
