> For the complete documentation index, see [llms.txt](https://kb.stoque.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.stoque.com.br/zeevdocs/integracoes/como-integrar-outras-ferramentas-com-o-zeev-docs/como-preparar-uma-instrucao-para-executar-uma-operacao/como-restaurar-um-documento-excluido-via-api.md).

# Como restaurar um documento excluído via API

## Visão geral

Serviço Web: *https\://\<servidor do* Zeev doc&#x73;*>/services/silentLogin.svc*

Confira abaixo o modelo de estrutura XML para excluir documento logicamente (DELETE):

| Estrutura do XML                            | Requerido      | Descrição                                                                                                                   |
| ------------------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------- |
| \<?xml version="1.0" encoding="UTF-8"?>     | Sim            | -                                                                                                                           |
| \<eContent>                                 | Sim            | Raiz.                                                                                                                       |
| \<header>                                   | Sim            | Cabeçalho de identificação pelo Zeev docs.                                                                                  |
| \<module name="SILENTLOGINEXECUTEACTION" /> | <p><br>Sim</p> | <p>Informações do módulo de entrada.<br>Atributo(s):<br><em>name</em> (obrigatório) - nome do módulo.</p>                   |
| <p><br>      \<application code=" " /></p>  | <p><br>Sim</p> | <p>Identificação da aplicação.<br>Atributo(s):<br><em>code</em> (obrigatório) - código da aplicação.</p>                    |
| \<userToken />                              | Sim            | Token de identificação do usuário para SilentLogin. Disponibilizada interface para geração do token através de web service. |
| \<identification />                         | Não            | Nó de livre preenchimento, podendo ser utilizado para inclusão de identificação do sistema que gerou o XML de SilentLogin.  |
| \<adHocUser />                              | Não            | Usuário que será gravado o log de acesso e ação.                                                                            |
| \</ header>                                 | -              | -                                                                                                                           |
| \<structure>                                | -              | -                                                                                                                           |
| \<events>                                   | -              | -                                                                                                                           |
| <p><br>         \<event name="RESTORE"></p> | <p><br>Sim</p> | <p>Informações do módulo de entrada.<br>Atributo(s):<br><em>name</em> (obrigatório) - nome da função a ser chamada.</p>     |
| \<content>                                  | -              | -                                                                                                                           |
| \<documentDestiny />                        | Sim            | Código do documento (IND\_ID) que deve ser restaurado.                                                                      |
| \</ content>                                | -              | -                                                                                                                           |
| \</ event>                                  | -              | -                                                                                                                           |
| \</ events>                                 | -              | -                                                                                                                           |
| \</structure>                               | -              | -                                                                                                                           |
| \</eContent >                               | -              | <p>-<br></p>                                                                                                                |

Efetue o download do modelo de XML:

{% file src="/files/usxFsrt2WJ02eYh1ks0N" %}

O retorno do método será de sucesso ou falha.


---

# 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://kb.stoque.com.br/zeevdocs/integracoes/como-integrar-outras-ferramentas-com-o-zeev-docs/como-preparar-uma-instrucao-para-executar-uma-operacao/como-restaurar-um-documento-excluido-via-api.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.
