> ## 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.

# Crear Sector

> Crea un nuevo sector.

## Endpoint

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

**Autenticación**\
Requiere el encabezado `authorization:  <tu_token>`.

## Cuerpo de la Solicitud (JSON)

> El servicio recibe un **wrapper** con la propiedad `sector`.

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

## Ejemplo (cURL)

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

## Respuestas

### Response - Éxito

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

### 500 — Error del Servidor

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

### 400 — Error del Cliente

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