> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/servicos-do-floui/floui-database/criar-registro.md).

# Criar registro

Crie um novo registro em uma Floui Database.

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeDdvFeJ8UG1qDWvDoHF8RWiSxYfSNGu72l1sWuH-locs0utvP1wKc_afkcF8DzrNGnROo8NN5yB1ubCRbi4D0Lb-uX4GL4zNJx1gYskgGJCyKixu6hMBayvL6EBduGFzb4GvYT?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo                                 | Tipo                 | Descrição                                                                                                                   |
| ------------------------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Descrição                             | Campo de texto       | Descrição visual do conector na construção do fluxo.                                                                        |
| Tabela de dados para criar o registro | Seletor              | Permite selecionar em qual tabela o novo registro será criado.                                                              |
| Valores do registro                   | Tabela de parâmetros | Tabela de parâmetros para definição dos campos e valores do registro a ser criado em tabela NoSQL.                          |
| Campo                                 | Campo de texto       | Nome do campo da tabela Floui Database. O nome do campo pode ser obtido ao acessar a edição da estrutura da Floui Database. |
| Valor                                 | Campo de texto       | Valor referente ao campo parametrizado. Em casos de valores booleanos utilizar 0/1, ou true/false.                          |
| Output Path                           | Campo de texto       | Refere-se ao caminho de saída onde o resultado da criação será disponibilizado no contexto de execução do conector.         |
| {% endtab %}                          |                      |                                                                                                                             |

{% tab title="Payload" %}

## Sucesso

Quando a criação do registro ocorre com sucesso, a saída do conector retorna os dados referentes ao novo registro criado.

* payload: Refere-se a carga de dados retornada pelo conector.
* \_id: Identificador único do registro criado no banco de dados NoSQL.
* table: Identificador único da tabela no banco de dados NoSQL.
* data: Chave com os dados e campos do registro criado.
* updated\_at: Data de atualização do registro no formato ISO 8601.
* created\_at: Data de criação do registro no formato ISO 8601.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcTa8VZ2htX3jJg9b9sG_n9m_khYIVqA8EkMolEuIRagZ51BKQfioESypPx4Sy4SEZ6FxQXmRhr2NgMNr2QxFw_wcTodbabJCSM44DmaaktD4r5g4eauaYo5yMCYjcIQXHMEi_wAQ?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Sucesso na criação de registro</p></figcaption></figure>

## Erro

Podem ocorrer diferentes cenários de erro durante a criação, dependendo da estrutura da tabela ou da forma como os campos e valores foram parametrizados. Nesses casos, o registro não será criado, e a saída do conector retornará um objeto erro, contendo uma mensagem detalhada sobre o motivo da falha na criação do registro.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfFuJAc8dGUkNVBkT5gC2hlmvvhlaBIPPL8Es8qDa7hOPR1IRJgnkRKEndhvb8jyWbPjxGfmLAeI7yl8wWSMsDo16vc7POSPF_D29FhMOWojyy_ACbkjYq3H3Hs4M_TjN0yarCAGw?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Erro na criação de registro</p></figcaption></figure>
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.floui.io/guia/conectores/categorias/servicos-do-floui/floui-database/criar-registro.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
