---
title: "Update Polygon"
method: PUT
path: "/api/admin/polygons/{polygon_id}"
tags: ["admin-polygons"]
---

# Update Polygon

`PUT /api/admin/polygons/{polygon_id}`

## Request

- Base URL: `https://grandline.luzomi.com`
- URL: `https://grandline.luzomi.com/api/admin/polygons/{polygon_id}`
- Auth: none declared

## Path parameters

- `polygon_id` integer, required

## Request body

- PolygonPatch
  - `name` string, nullable
  - `polygon_family_id` integer, nullable
  - `hierarchy_level` string, nullable
  - `parent_polygon_id` integer, nullable
  - `status` string, nullable
  - `notes` string, nullable
  - `country` string, nullable
  - `port_name` string, nullable
  - `terminal_name` string, nullable
  - `geometry` PolygonGeometry
    - `type` string, required: Must be "Polygon"
    - `coordinates` array[], required
      - array[]
        - number[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/luzomi/apis/grandline-api.md) · [All operations](https://skmtc.dev/luzomi/apis/grandline-api/llms.txt) · [OpenAPI document](https://skmtc.dev/luzomi/apis/grandline-api/revisions/4ce06aea012b?raw)
