---
title: "PUT /data-types/unarchive"
method: PUT
path: "/data-types/unarchive"
tags: ["Graph", "DataType"]
---

# PUT /data-types/unarchive

`PUT /data-types/unarchive`

## Headers

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

## Request body

- UnarchiveDataTypeParams
  - `dataTypeId` 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}`
  - `provenance` ProvidedOntologyEditionProvenance, required — User-provided provenance information for an ontology type edition. Contains information provided by the client about the creation context, including the acting entity's type and the origin of the creation action.
    - `actorType` 'user' | 'machine' | 'ai', required — Types of individual actors in the system. Represents the different categories of entities that can perform actions.
    - `origin` union, required
      - object
        - `apiKeyPublicId` string
        - `deviceId` string
        - `environment` string
        - `id` string
        - `semanticVersion` string
        - `sessionId` string
        - `type` 'web-app', required
        - `userAgent` string
        - `version` string — The origin version, in whatever format the origin natively provides.
      - object
        - `apiKeyPublicId` string
        - `deviceId` string
        - `environment` string
        - `id` string
        - `semanticVersion` string
        - `sessionId` string
        - `type` 'mobile-app', required
        - `userAgent` string
        - `version` string — The origin version, in whatever format the origin natively provides.
      - object
        - `apiKeyPublicId` string
        - `deviceId` string
        - `environment` string
        - `id` string
        - `semanticVersion` string
        - `sessionId` string
        - `type` 'browser-extension', required
        - `userAgent` string
        - `version` string — The origin version, in whatever format the origin natively provides.
      - object
        - `apiKeyPublicId` string
        - `deviceId` string
        - `environment` string
        - `id` string
        - `semanticVersion` string
        - `sessionId` string
        - `type` 'api', required
        - `userAgent` string
        - `version` string — The origin version, in whatever format the origin natively provides.
      - object
        - `apiKeyPublicId` string
        - `deviceId` string
        - `environment` string
        - `id` string
        - `semanticVersion` string
        - `sessionId` string
        - `stepIds` string[]
        - `type` 'flow', required
        - `userAgent` string
        - `version` string — The origin version, in whatever format the origin natively provides.
      - object
        - `apiKeyPublicId` string
        - `deviceId` string
        - `environment` string
        - `id` string
        - `semanticVersion` string
        - `sessionId` string
        - `type` 'migration', required
        - `userAgent` string
        - `version` string — The origin version, in whatever format the origin natively provides.
    - `sources` SourceProvenance[]
      - `authors` string[] — The people or organizations that authored the material.
      - `entityId` string
      - `firstPublished` string, date-time
      - `lastUpdated` string, date-time
      - `loadedAt` string, date-time
      - `location` Location — A location where the source material can be found.
        - `description` string — Encapsulates a message intended to be read by the end user.
        - `name` string — A string containing the name of the location.
        - `uri` string, uri — A string containing a valid relative or absolute URI.
      - `type` 'webpage' | 'document' | 'integration', required — The type of source material which was used to produce a value.

## Response `200`

The temporal metadata of the updated data 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` — Data type ID was not found
- `409` — Data type ID already exists and is not archived
- `422` — Provided request body is invalid
- `500` — Store error occurred

## Changes

- **2026-06-25** `d94249d1f3aa` — 1 warning
  - the `dataTypeId` request property's maxLength was set to `2048`
- **2025-12-17** `2e2aef91c0ff` — 1 info
  - added the new `integration` enum value to the request property `provenance/sources/items/type`
- **2025-04-24** `ccac01e6aad0` — 1 breaking
  - removed the enum value `integration` of the request property `provenance/sources/items/type`

[Change history](https://skmtc.dev/hashintel/apis/graph/changes/data-types/unarchive/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)
