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

# POST /entities/{entityId}/archive

`POST /entities/{entityId}/archive`

## Path parameters

- `entityId` string, required

## Response `200`

Archived 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

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — DEFAULT_ENTITY: the default entity cannot be archived; ENTITY_IN_USE: an active site or an active child entity still references it

## Changes

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

[Change history](https://skmtc.dev/greentally/apis/esgai-api/changes/entities/:entityId/archive/post.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)
