---
title: "Archive an entity"
method: POST
path: "/api/entities/{id}/lifecycle/archive"
tags: ["Lifecycle"]
---

# Archive an entity

`POST /api/entities/{id}/lifecycle/archive`

## Request

- Base URL: `https://your-server`
- URL: `https://your-server/api/entities/{id}/lifecycle/archive`
- Auth: OAuth 2
  - Authorization code: `/oauth/authorize`
  - Token URL: `/oauth/token`
- TypeScript: <https://skmtc.dev/sitecore/apis/entities-api/docs/api/entities/:id/lifecycle/archive/post.ts> (a function with typed inputs; its response is checked against the schema)

Archives an <i>approved</i> entity. The entity can be restored if needed. Requires the <i>Archive</i> permission.

## Path parameters

- `id` integer, required

## Response `200`

Entity archived successfully

## Other responses

- `400`: Request not valid
- `401`: Unauthorized request
- `403`: Insufficient permission
- `404`: Entity not found or user not authorized

---

[API](https://skmtc.dev/sitecore/apis/entities-api.md) - [All operations](https://skmtc.dev/sitecore/apis/entities-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sitecore/apis/entities-api/revisions/328bbdd51028?raw)
