---
title: "Archive content library document"
method: POST
path: "/trust_exchange/content_library/document/archive"
tags: ["trust_exchange"]
---

# Archive content library document

`POST /trust_exchange/content_library/document/archive`

## Request

- Base URL: `https://cyber-risk.upguard.com/api/public`
- URL: `https://cyber-risk.upguard.com/api/public/trust_exchange/content_library/document/archive`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/docs/trust_exchange/content_library/document/archive/post.ts> (a function with typed inputs; its response is checked against the schema)

Archives or unarchives a document in the organization's content library. Archiving removes the
document from any Trust Centers it appears on.

Required API key permissions: `TrustExchange` and `ReadWrite` (select when creating API key in Account Settings)

## Query parameters

- `uuid` string, required
- `set_archived` boolean, required

## Response `204`

No Content

## Other responses

- `403`: Account does not have access to requested entities
- `422`: An invalid parameter was supplied or a mandatory parameter was missing
- `429`: Too many requests have been made to this endpoint.
- `500`: An internal system error occurred

## Changes

- **2026-11-07** `d044bf6dc61e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/changes/trust_exchange/content_library/document/archive/post.md)

---

[API](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api.md) - [All operations](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/revisions/d044bf6dc61e?raw)
