---
title: "Update document metadata"
method: PUT
path: "/api/documents-test/{document_id}"
tags: ["documents-test"]
---

# Update document metadata

`PUT /api/documents-test/{document_id}`

Update document metadata (name, type, expiration, etc).

## Path parameters

- `document_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- DocumentUpdate — Input model for updating document metadata.
  - `nome` string, nullable
  - `tipodoc` integer, nullable
  - `data_expira` string, date, nullable
  - `id_doc_assinado` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

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