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

# Add Sector

> Add a sector to user preferences

## Headers

<ParamField header="X-API-Key" type="string" required>Your Rushed API key: `rsh_live_xxxxxxxxxxxx`</ParamField>

## Request Body

<ParamField body="sector" type="string" required>
  Sector code: `FIN`, `TEC`, `SAU`, `ENE`, `MAT`, `IND`, `CON`, `IMO`, `AGR`, `TRA`, `COM`, `SER`, `GOV`, `ESP`, `CRY`, `FIP`, `CIE`, `DEF`, `CUL`, `EDU`, `AMB`, `SOC`, `TUR`
</ParamField>

<ParamField body="weight" type="number">
  Weight (0–5, default 1.0). Higher weight = more relevance in feed scoring.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://worker.rushed.com.br/api/users/preferences/sectors \
    -H "X-API-Key: rsh_live_xxxxxxxxxxxx" \
    -H "Content-Type: application/json" \
    -d '{"sector": "FIN", "weight": 3.0}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 — Success theme={null}
  { "success": true, "data": { "sectors": ["FIN", "TEC"], "sectorWeights": { "FIN": 3.0, "TEC": 1.0 } } }
  ```
</ResponseExample>
