---
title: "Archive asset"
method: POST
path: "/api/v1/assets/_archive"
tags: ["Web Assets"]
---

# Archive asset

`POST /api/v1/assets/_archive`

Archive an asset (file) to make it inactive while preserving it in the system.

## Request body

- AssetArchiveRequestForm
  - `assetPath` string, required — Full path to the asset (file) to be archived

## Response `200`

Asset archived successfully

- ResponseEntityBooleanView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` boolean
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — Unauthorized access
- `403` — Insufficient permissions to archive asset
- `404` — Asset not found

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
