---
title: "PUT /entity-types/archive"
method: PUT
path: "/entity-types/archive"
tags: ["Graph", "EntityType"]
---

# PUT /entity-types/archive

`PUT /entity-types/archive`

## Headers

- `X-Authenticated-User-Actor-Id` string, uuid, required

## Request body

- ArchiveEntityTypeParams
  - `entityTypeId` string, uri, required — The versioned URL of a Block Protocol ontology type (the $id of the schema). It should be of the form `${baseUrl}v/${versionNumber}`

## Response `200`

The metadata of the updated entity type

- OntologyTemporalMetadata
  - `transactionTime` LeftClosedTemporalInterval, required
    - `end` union, required
      - object
        - `kind` 'exclusive', required
        - `limit` string, date-time, required
      - object
        - `kind` 'unbounded', required
    - `start` ClosedTemporalBound, required
      - `kind` 'inclusive', required
      - `limit` string, date-time, required

## Other responses

- `404` — Entity type ID was not found
- `409` — Entity type ID is already archived
- `422` — Provided request body is invalid
- `500` — Store error occurred

## Changes

- **2026-06-25** `d94249d1f3aa` — 1 warning
  - the `entityTypeId` request property's maxLength was set to `2048`

[Change history](https://skmtc.dev/hashintel/apis/graph/changes/entity-types/archive/put.md)

---

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