> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update document

> Change the name of a document or category.

<div className="mb-4 flex items-center gap-2"><span className="rounded-lg font-bold px-1.5 py-0.5 text-sm leading-5 bg-yellow-400/20 text-yellow-700 dark:text-yellow-400">PUT</span><span className="flex items-center gap-0.5 font-mono text-sm"><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"cases"}</span><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"{token}"}</span><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"contents"}</span><span className="text-gray-400">/</span><span className="font-medium text-gray-800 dark:text-white">{"{content_token}"}</span></span></div>

Change the name of a document or category. If the content has already been processed and is currently `SUBMITTED` or `RECEIVED`, an error is returned.

<h2 id="_url_path_parameter_4">
  URL path parameter
</h2>

| Fields | Description |
| - | - |
| token<br />string<br />Required | The token that identifies the dispute case for which to return the contents list.<br />**Allowable Values:**<br />36 char max<br />Send a `GET` request to `/cases` to retrieve dispute case tokens. |
| content\_token<br />string<br />Required | The content token that identifies the document.<br />**Allowable Values:**<br />36 char max |

<h2 id="_body_field_details_5">
  Body field details
</h2>

| Fields | Description |
| - | - |
| document\_name<br />string<br />Required | The name for the document.<br />**Allowable Values:**<br />255 char max |
| document\_category<br />string<br />Required | The category of the document.<br />**Allowable Values:**<br />`AFFIDAVIT_FRAUD`, `AUTHORIZATION_RECORD`, `BANK_STATEMENT`, `CANCELLED_CHECK`, `CARDHOLDER_LETTER`, `CREDIT_VOUCHER`, `FULFILLMENT`, `ISSUER_CERTIFICATION`, `MERCHANT_LETTER`, `NETWORK_DOCUMENT`, `NETWORK_EXHIBIT`, `OTHERS`, `RECEIPT`, `SALES_DRAFT`, `SECOND_OPTION`, `UPDATED_CARDHOLDER_LETTER`, `UPDATED_MERCHANT_LETTER` |

<h2 id="_update_document_response_body">
  Update document response body
</h2>

For response details, see [Create content response body](/docs/core-api/disputes-visa/create-case-content#_create_content_response_body).

<h2 id="_sample_request_body_5">
  Sample request body
</h2>

```json JSON lines wrap theme={null}
{
  "document_name": "receipt.pdf",
  "document_category": "RECEIPT"
}
```

<h2 id="_sample_response_body_13">
  Sample response body
</h2>

```json JSON lines wrap theme={null}
{
  "token": "my_content_token",
  "case_token": "my_case_token",
  "document_name": "letter.pdf",
  "document_category": "CARDHOLDER_LETTER",
  "document_content_type": "string",
  "network_processing_type": "SUBMITTED",
  "network_processing_phase": "INITIATED",
  "network_processing_time": "2022-02-02T23:06:18.429Z",
  "created_time": "2022-02-02T23:06:18.429Z",
  "updated_time": "2022-02-02T23:06:18.429Z",
  "download_link": "uri"
}
```


## Related topics

- [Update document](/docs/core-api/disputes-pulse/update-document.md)
- [Update document policy](/docs/core-api/credit-policies/update-document.md)
- [Policies Overview](/docs/core-api/credit-policies.md)
- [Disputes (Visa) Overview](/docs/core-api/disputes-visa.md)
- [Disputes (Mastercard) Overview](/docs/core-api/disputes-mastercard.md)
