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

# Update document

> Updates the specified document metadata.

## Path parameters

**id** `string` *required*

## Body parameters

**display\_name** `string`

**tag\_codes** `string[]`

## Response body

> [tab] 204
>
> No content.

> [tab] default
>
> unexpected error
>
> **errors** `APIError[]`
>
> Will contain both "v1" (deprecated, or soon to be) errors and "v2" errors. When possible, prefer errors that are not deprecated.
>
> **properties**
>
> **code** `string`
>
> **deprecated** `boolean`
>
> **message** `string`
>
> **will\_be\_deprecated** `boolean`

```json JSON
{
  "display_name": "string",
  "tag_codes": [
    "string"
  ]
}
```

```javascript JavaScript

  const response = await fetch(
    "POST /api/v1/customer_documents/{id}",
    {
      method: "post",
      headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer {token}`
      },
      body: JSON.stringify({
  "display_name": "string",
  "tag_codes": [
    "string"
  ]
})
    }
  );
            
          
```

```json default
{
  "errors": [
    {
      "code": "string",
      "deprecated": "boolean",
      "message": "string",
      "will_be_deprecated": "boolean"
    }
  ]
}
```



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.