---
title: "Changes to Update the metadata of a specific document."
method: PUT
path: "/v1/libraries/{library_id}/documents/{document_id}"
---

# Changes to Update the metadata of a specific document.

`PUT /v1/libraries/{library_id}/documents/{document_id}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 14 revisions.

- **2026-07-13** `5a5c361558bb`: 1 breaking, 7 info
- **2026-04-07** `ff8a7389b7a4`: 1 info

## Changes

- **2026-07-13** `5a5c361558bb`: 1 breaking, 7 info
  - request property `name` list-of-types was narrowed by removing types `null` from media type `application/json`
  - endpoint deprecated
  - added the new optional request property `expires_at`
  - added the optional property `expires_at` to the response with the `200` status
  - response property `hash` deprecated
  - response property `processing_status` deprecated
  - response property `tokens_processing_main_content` deprecated
  - response property `tokens_processing_summary` deprecated
- **2026-04-07** `ff8a7389b7a4`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/mistral/apis/mistral-ai-api/docs/v1/libraries/:library_id/documents/:document_id/put.md) - [API](https://skmtc.dev/mistral/apis/mistral-ai-api.md) - [Page](https://skmtc.dev/mistral/apis/mistral-ai-api/changes/v1/libraries/:library_id/documents/:document_id/put)
