> ## 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.

PUT/cases/\{token}/contents/\{content\_token}

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.

## URL path parameter

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

## Body field details

| Fields | Description |
| - | - |
| document\_name string  Required | The name for the document. **Allowable Values:**  255 char max |
| document\_category string  Required | The category of the document. **Allowable Values:**  `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` |

## Update document response body

For response details, see [Create content response body](https://www.marqeta.com/docs/core-api/disputes-visa/dispute-case-content-visa/create-dispute-case-content-visa.md#_create_content_response_body).

## Sample request body

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

## Sample response body

```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](https://www.marqeta.com/docs/core-api/disputes-mastercard/dispute-case-content-mastercard/update-document-mastercard.md)
- [Update document policy](https://www.marqeta.com/docs/core-api/credit-policies/document-policies/update-document-policy.md)
- [Document Policies Overview](https://www.marqeta.com/docs/core-api/credit-policies/document-policies.md)
- [Policies Overview](https://www.marqeta.com/docs/core-api/credit-policies.md)
- [Dispute Case Content (Mastercard) Overview](https://www.marqeta.com/docs/core-api/disputes-mastercard/dispute-case-content-mastercard.md)
