> For the complete documentation index, see [llms.txt](https://docs.zapsign.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zapsign.com.br/espanol/documentos/update-document/reorder-envelope.md).

# Reordenar documentos de un sobre

## Actualizar documento

<mark style="color:blue;">`PUT`</mark>` ``https://api.zapsign.com.br/api/v1/docs/{doc_token}/document-display-order/`

**Condiciones**

* El documento identificado por `doc_token` debe ser un **sobre** (es decir, un documento que agrupa varios archivos).
* Solo se puede reordenar si el sobre está **en curso**.
* Debes incluir **todos** los tokens de documentos que componen el sobre, en el orden deseado. Estos token se encuentran en la respuesta al crear el documento o en [detalles del documento](/espanol/documentos/detalhar-documento.md)

#### Path Parameters

<table><thead><tr><th width="173">Nombre</th><th width="130">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td>doc_token</td><td>string</td><td>Document token</td></tr></tbody></table>

#### Encabezado

<table><thead><tr><th width="150.788330078125">Nombre</th><th width="103">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td>Authorization<mark style="color:red;">*</mark></td><td>string</td><td>API token prefijo con la palabra "Bearer". Ex: Bearer c7f35c84-7893-4087-b4fb-d1f06c23</td></tr></tbody></table>

### Body

<table><thead><tr><th width="148.1527099609375">Campo</th><th width="149.8046875">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td>document_display_order</td><td>array de string</td><td>Lista ordenada de tokens de documentos, indicando el nuevo orden de visualización.</td></tr></tbody></table>

### Body de ejemplo

```json
{
    "document_display_order": [
        "6a4c7b7d-433e-4faf-a4b1-1f96bbf72c68",    
        "09d983a1-7c26-472a-a2ef-8ee10470b5ed",
        "9f8c63bb-eb1b-461d-8ede-0ae90d75c18a"
    ]
}
```

{% tabs %}
{% tab title="200 Exitoso." %}

```javascript
{
    "Documento actualizado correctamente"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zapsign.com.br/espanol/documentos/update-document/reorder-envelope.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
