> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orkeia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Criar Setor

> Cria um novo setor.

## Endpoint

`POST https://gateway.orkeia.ai/sectors`

**Autenticação**\
Requer cabeçalho `authorization:  <seu_token>`.

## Corpo da Requisição (JSON)

> O serviço recebe um **wrapper** com a propriedade `sector`.

```json theme={null}
{
  "sector": {
    "name": "RH",
    "description": "Setor de Recursos Humanos"
  }
}
```

## Exemplo (cURL)

```bash theme={null}
curl -X POST "https://gateway.orkeia.ai/sectors"   -H "authorization:  <seu_token>"   -H "Content-Type: application/json"   -d '{
    "sector": {
      "name": "RH",
      "description": "Setor de Recursos Humanos"
    }
  }'
```

## Respostas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": { "id": "SECTOR_123456" }
}
```

### 500 — Server Error

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
