> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/api-skyone-autosky/api-clientes/cadastrar-cliente.md).

# Cadastrar cliente

Realiza o cadastramento de um novo cliente na plataforma.

```http
POST /clients/
```

### Body da Requisição

| Campo                             | Tipo    | Obrigatório | Descrição                                                                                              |
| --------------------------------- | ------- | ----------- | ------------------------------------------------------------------------------------------------------ |
| `nome`                            | string  | Sim         | Nome do cliente na plataforma                                                                          |
| `external_client_code`            | string  | Não         | Código customizado do cliente                                                                          |
| `email_admin`                     | string  | Sim         | Email do administrador do ambiente                                                                     |
| `amb_uuid`                        | string  | Sim         | UUID do ambiente em que o cliente será vinculado                                                       |
| `description`                     | string  | Não         | Informações adicionais do cliente                                                                      |
| `grupo_seguranca`                 | string  | Não         | Grupo de segurança do AD que será criado                                                               |
| `block_multiple_session`          | boolean | Não         | Ativa/desativa o bloqueio de múltiplas sessões do mesmo usuário                                        |
| `has_license_limit`               | boolean | Não         | Se o cliente possui limite de licenças de acesso                                                       |
| `license_limit`                   | number  | Não         | Número de licenças de acesso                                                                           |
| `ad_add_aditional_group`          | string  | Não         | Grupo de segurança do AD em que o grupo deste cliente deve ser vinculado                               |
| `in_maintenance`                  | boolean | Não         | Ativa/desativa manutenção imediata no cliente                                                          |
| `maintenance_msg`                 | string  | Não         | Mensagem de manutenção imediata                                                                        |
| `schedule_maintenance`            | boolean | Sim         | Ativa/desativa manutenção programada                                                                   |
| `schedule_maintenance_start`      | string  | Condicional | Data/hora de início da manutenção programada. Obrigatório quando `schedule_maintenance` é `true`       |
| `schedule_maintenance_end`        | string  | Condicional | Data/hora de encerramento da manutenção programada. Obrigatório quando `schedule_maintenance` é `true` |
| `schedule_maintenance_msg`        | string  | Condicional | Mensagem da manutenção programada. Obrigatório quando `schedule_maintenance` é `true`                  |
| `terminate_sessions`              | boolean | Não         | Encerra sessões ao ativar manutenção programada                                                        |
| `schedule_warning`                | boolean | Sim         | Ativa/desativa exibição programada de avisos                                                           |
| `schedule_warning_start`          | string  | Condicional | Data/hora de início dos avisos. Obrigatório quando `schedule_warning` é `true`                         |
| `schedule_warning_end`            | string  | Condicional | Data/hora de encerramento dos avisos. Obrigatório quando `schedule_warning` é `true`                   |
| `schedule_warning_msg`            | string  | Condicional | Mensagem do aviso programado. Obrigatório quando `schedule_warning` é `true`                           |
| `display_warning_to_logged_users` | boolean | Condicional | Exibe aviso para usuários já logados. Obrigatório quando `schedule_warning` é `true`                   |
| `observations`                    | string  | Não         | Informações adicionais sobre o cliente                                                                 |

### Exemplo de Requisição

```json
{
  "nome": "Teste Cliente",
  "external_client_code": "External Client Code 1",
  "email_admin": "email-admin@email.com",
  "amb_uuid": "715088c9-9f21-424e-bcd5-5eacc0ce165b",
  "description": "",
  "grupo_seguranca": "Grupo de segurança",
  "block_multiple_session": false,
  "has_license_limit": false,
  "license_limit": 0,
  "in_maintenance": false,
  "maintenance_msg": "",
  "ad_add_aditional_group": "VersionProd"
}
```

### Resposta

**Status:** `200 OK`

Retorna o objeto completo do cliente criado, incluindo o `cli_uuid` gerado.


---

# 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.skyone.cloud/api-skyone-autosky/api-clientes/cadastrar-cliente.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.
