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

# Update content library document

`POST /trust_exchange/content_library/document/update`

## Request

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

Updates the properties of a document in the organization's content library.
Only fields that are provided in the request body are updated; omitted fields are left unchanged.

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

## Request body

- UpdateContentLibraryDocumentBody
  - `clear_expires_at` boolean: Set to true to clear the expiry date. If true, `expires_at` is ignored.
  - `description` string: The new description of the document. If omitted, the description is not changed.
  - `document_type` string: The new document type (e.g. SOC 2 Report, ISO 27001). If omitted, the type is not changed.
  - `expires_at` string: The new expiry date for the document in YYYY-MM-DD format. If omitted, the expiry date is not changed.
  - `internal_notes` string: The new internal notes for the document. If omitted, internal notes are not changed.
  - `name` string: The new name of the document. If omitted, the name is not changed.
  - `uuid` string, required: The UUID of the document to update.

## 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/update/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)
