> For the complete documentation index, see [llms.txt](https://devcenter.unico.io/unico-people/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devcenter.unico.io/unico-people/unico-people-v1/apis/departamentos/create-department.md). Agents can also search and read this documentation through its [MCP server](https://devcenter.unico.io/unico-people/~gitbook/mcp).

# Create department

Cria um departamento na empresa selecionada.

<mark style="color:orange;">`POST`</mark> \ <mark style="color:$primary;">**Url Produção:**</mark> `https://api.acessorh.com.br`\ <mark style="color:$primary;">**Url Homologação:**</mark> `https://api.rh.homolog.acesso.io`\ <mark style="color:$primary;">**Endpoint:**</mark> `/v1/department/json/:acc`

### **Headers**

| Key                                             | Type   | Description                                                   |
| ----------------------------------------------- | ------ | ------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | string | Token de acesso adquirido pela plataforma Identity (*bearer*) |

### **Path Parameters**

| Key                                   | Type   | Description                                                                                                            |
| ------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------- |
| acc<mark style="color:red;">\*</mark> | string | UID da [empresa](https://devcenter.unico.io/unico-people/unico-people-v1/apis/organizacao.md) onde o cargo será criado |

### Descrição do body JSON da requisição <a href="#descricao-do-body-json-da-requisicao" id="descricao-do-body-json-da-requisicao"></a>

| Key                                        | Type   | Description            |
| ------------------------------------------ | ------ | ---------------------- |
| **name**<mark style="color:red;">\*</mark> | string | Nome do departamento   |
| **code**                                   | string | Código do departamento |

### Exemplo de requisição <a href="#exemplo-de-requisicao" id="exemplo-de-requisicao"></a>

```json
{
    "code": "ti",
    "name": "Tecnologia da Informação"
}
```

### Exemplo de response <a href="#exemplo-de-requisicao" id="exemplo-de-requisicao"></a>

```json
200 - OK
```
