---
title: "Update Scale Region"
method: PATCH
path: "/api/v1/scale-regions/{region_id}"
tags: ["scale-regions"]
---

# Update Scale Region

`PATCH /api/v1/scale-regions/{region_id}`

Rename and/or move/resize. A geometry change re-resolves membership and
is rejected 422 if it would orphan a measurement unless payload.on_orphan
is set.

## Path parameters

- `region_id` string, uuid, required

## Request body

- UpdateScaleRegionRequest — Rename (metadata-only) and/or move/resize a region. A geometry change re-resolves membership and recomputes (spec §5.4). If the edit would straddle or strand any measurement, the route rejects 422 ("scale_region_edit_would_orphan_measurements") unless `on_orphan` selects an explicit resolution: 'snap_to_page' (only valid when a page scale exists) or 'delete'.
  - `name` string, nullable
  - `x` union
    - number
    - string
  - `y` union
    - number
    - string
  - `width` union
    - number
    - string
  - `height` union
    - number
    - string
  - `on_orphan` 'snap_to_page' | 'delete', nullable

## Response `200`

Successful Response

- ScaleRegionMutationResponse — Returned by calibrate / edit / delete: the region (omitted on delete is out of scope — delete returns only the count) plus how many measurements were recomputed in the same transaction.
  - `region` ScaleRegion, required — A single rectangular scale region on a page. `scale_ratio` / `calibration` are None until the region is calibrated; an uncalibrated region is inert for scale resolution (spec §5.1).
    - `id` string, uuid, required
    - `project_id` string, uuid, required
    - `page_id` string, uuid, required
    - `name` string, required
    - `color` string, required
    - `x` string, required
    - `y` string, required
    - `width` string, required
    - `height` string, required
    - `scale_ratio` string, nullable
    - `calibration` CalibrationDataOutput — User-entered calibration tuple, the shape stored in pages.calibration JSONB.
      - `drawing_distance` string, required
      - `drawing_units` 'in' | 'ft' | 'mm' | 'cm' | 'm', required
      - `actual_distance` string, required
      - `actual_units` 'in' | 'ft' | 'mm' | 'cm' | 'm', required
      - `source` 'standard' | 'manual' | 'calibrate', required
      - `description` string, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `scale_source` 'autoset' | 'user' | 'import', required
    - `suggested_notation` string, nullable
    - `suggested_ratio` string, nullable
    - `prior_violated` boolean, nullable
  - `recomputed_measurement_count` integer, required

## Other responses

- `4XX` — Client Error
- `5XX` — Server Error

---

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