---
title: "PATCH /entities/{entityId}"
method: PATCH
path: "/entities/{entityId}"
tags: ["Sites"]
---

# PATCH /entities/{entityId}

`PATCH /entities/{entityId}`

## Path parameters

- `entityId` string, required

## Request body

- EntityUpdateRequest — Omitted fields are unchanged; an empty legalId or parentId clears it; a null or empty countryOfIncorporation clears it.
  - `countryOfIncorporation` string, nullable — ISO-3166 alpha-2; lower case is accepted and stored upper case
  - `legalId` string
  - `name` string
  - `ownershipPct` number
  - `parentId` string

## Response `200`

Updated entity

- EntityResponse
  - `data` Entity, required
    - `archivedAt` string, date-time, nullable, required
    - `countryOfIncorporation` string, nullable, required — ISO-3166 alpha-2, upper case
    - `createdAt` string, date-time, required
    - `id` string, required — ent_ + 32 hex
    - `isDefault` boolean, required
    - `legalId` string, nullable, required
    - `name` string, required
    - `ownershipPct` number, required
    - `parentId` string, nullable, required
    - `updatedAt` string, date-time, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — ENTITY_ARCHIVED: an archived entity is read-only
- `422` — ENTITY_NOT_ASSIGNABLE: parentId is not an active entity of the selected organization; ENTITY_CYCLE: the entity would become its own ancestor

## Changes

- **2026-10-02** `766c2a40e369` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/greentally/apis/esgai-api/changes/entities/:entityId/patch.md)

---

[API](https://skmtc.dev/greentally/apis/esgai-api.md) · [All operations](https://skmtc.dev/greentally/apis/esgai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/greentally/apis/esgai-api/revisions/4189686230ca?raw)
