---
title: "Update Document Metadata"
method: PATCH
path: "/entities/{entity_token}/documents/{document_token}"
tags: ["Documents"]
---

# Update Document Metadata

`PATCH /entities/{entity_token}/documents/{document_token}`

If you want to mark a document as “approved” or “denied” (if you have a document review process), or just change the name or type of a document, you can do so with the PATCH endpoint.

## Request body

- object
  - `approved` boolean, required
  - `type` string, required
  - `approval_agent_email` string, required
  - `name` string, required

## Response `200`

Document

- Items[] — unresolved $ref

---

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