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

# Atualizar arquivo

> Atualiza os dados e o conteúdo de um arquivo existente no processo de assinatura.

## Path Parameters

<ParamField path="signature_process" type="string" required>
  UUID do processo de assinatura. **Exemplo**:
  `d3aa8dbf-b123-49e3-83f9-1aef6d89fdc9`
</ParamField>

<ParamField path="file" type="string" required>
  UUID do arquivo. **Exemplo**: `f3de0d7e-7987-4e0b-b087-b7a0fd55dc32`
</ParamField>

## Body Parameters

<ParamField body="filename" type="string" required>
  Nome do arquivo. **Exemplo**: `contrato-atualizado.pdf`
</ParamField>

<ParamField body="extension" type="string" required>
  Extensão do arquivo. **Exemplo**: `pdf`
</ParamField>

<ParamField body="code" type="string">
  Código do arquivo. **Exemplo**: `ARQ001`
</ParamField>

<ParamField body="content" type="string">
  Conteúdo do arquivo em Base64. **Exemplo**: `JVBERi0xLjQKJcTl8uXrp/Og0MTGC...`
</ParamField>

<ParamField body="url" type="string">
  URL do arquivo para download. **Exemplo**:
  `https://exemplo.com/novo-arquivo.pdf`
</ParamField>

## Response

<ResponseField name="message" type="string">
  Mensagem de sucesso. **Exemplo**: `Arquivo atualizado com sucesso`
</ResponseField>

<ResponseExample>
  ```json 200 OK theme={"theme":"catppuccin-latte"}
  {
    "message": "Arquivo atualizado com sucesso"
  }
  ```

  ```json 401 Não autenticado theme={"theme":"catppuccin-latte"}
  ```

  ```json 403 Não autorizado theme={"theme":"catppuccin-latte"}
  ```

  ```json 404 Arquivo não encontrado theme={"theme":"catppuccin-latte"}
  ```

  ```json 500 Internal Server Error theme={"theme":"catppuccin-latte"}
  ```
</ResponseExample>
