# POST /api/v1/businesses/nav-preferences/suggest

> AI-suggest which nav items to hide

- **Tag:** businesses
- **Operation ID:** `suggest_nav_preferences_api_v1_businesses_nav_preferences_suggest_post`

## Description

Given a business description and the hideable nav catalog, returns a proposed set of items to hide (with reasons) plus a one-line profile. Proposal only — nothing is saved; apply via PUT /nav-preferences.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Request body

Schema: `NavSuggestRequest`

- `description` (string · required) — Free-text business description
- `items` (array · NavCatalogItem) → `NavCatalogItem` — The hideable nav catalog (frontend-sourced)
  - `id` (string · required) — Stable hideable id, e.g. 'workspace:inventory'
  - `label` (string) — Human label
  - `description` (string) — What lives here
  - `feature_tags` (array · string) — Capability tags that help the model match
- `signals` (object) — Optional account-derived hints, e.g. {'has_inventory': 'true'}

## Responses

### 201 — Successful Response

Schema: `SuccessEnvelope_NavSuggestResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (NavSuggestResponse)

### 400 — Bad Request - Invalid input

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

### 500 — Internal Server Error

## Code samples

### cURL

```bash
curl -X POST 'https://api.ondayzero.com/api/v1/businesses/nav-preferences/suggest' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "string"
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/businesses/nav-preferences/suggest', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "description": "string"
}),
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

payload = {
  "description": "string"
}

response = httpx.post("https://api.ondayzero.com/api/v1/businesses/nav-preferences/suggest", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/businesses/suggest-nav-preferences
- OpenAPI slice: https://www.ondayzero.com/docs/reference/businesses/suggest-nav-preferences/openapi.json
- Other endpoints in **businesses**: https://www.ondayzero.com/docs/reference/businesses
