# API - Como Criar um Objeto Customizado

### Rota

<mark style="color:green;">`POST`</mark> `/customobjects/objects/:id_definicao?apitoken=seu-token&i=sua-instancia`

### Query Params

<table><thead><tr><th width="291">Key/Chave</th><th width="450">Descrição</th></tr></thead><tbody><tr><td>i</td><td>Identificador da sua instância, subdomínio.</td></tr><tr><td>apitoken</td><td>Token da API.</td></tr></tbody></table>

### Path Params

| Key/Chave      | Descrição                                                                                                                                                              |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| :id\_definicao | ID da definição do Objeto Customizado. Você pode consultar a lista dos IDs disponíveis [aqui](/topicos/api/api-como-relacionar-um-objeto-customizado-a-um-contato.md). |

## Testando Criação de Objeto Customizado

O envio da requisição foi realizado utilizando o software *Postman*. Deve ser inserido no *body* os campos a serem preenchidos dos Objetos Customizados, a chave deve corresponder ao alias de cada campo. A resposta esperada é um objeto representando o Objeto criado.

{% hint style="info" %}
Para vincular o Objeto criado a um lead, utilize o ID retornado nesta chamada na requisição de relacionamento do Objeto Customizado.
{% endhint %}

<div data-with-frame="true"><figure><img src="/files/LOfO3jFXwE9jgUXv6AVN" alt=""><figcaption><p><em>Requisição para Criação de Objeto Customizado.</em></p></figcaption></figure></div>


---

# Agent Instructions: 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:

```
GET https://docs.sprinthub.com/topicos/api/api-como-criar-um-objeto-customizado.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
