---
title: "Archive a site; its rows keep their stamp and its matchers are deleted"
method: POST
path: "/sites/{siteId}/archive"
tags: ["Sites"]
---

# Archive a site; its rows keep their stamp and its matchers are deleted

`POST /sites/{siteId}/archive`

## Path parameters

- `siteId` string, required

## Response `200`

Archived site

- SiteResponse
  - `data` Site, required
    - `address` string, nullable, required
    - `archivedAt` string, date-time, nullable, required
    - `code` string, nullable, required
    - `country` string, nullable, required — ISO-3166 alpha-2
    - `createdAt` string, date-time, required
    - `entityId` string, required
    - `entityName` string, required
    - `id` string, required — site_ + 32 hex
    - `kind` 'office' | 'building' | 'facility' | 'warehouse' | 'fleet' | 'other', required
    - `name` string, required
    - `updatedAt` string, date-time, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

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

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