Feature: add API to update workspace settings for live chat sidebar features

## New Feature

### Workspace API — Configure Live Chat Sidebar via API

A new Workspace API endpoint lets you programmatically control which features, filters, and channels are visible in the Live Chat sidebar — replicating the full set of options available in the Workspace Settings UI.

#### New Endpoint

| Method | Endpoint | Description |
|--------|----------|-------------|
| `POST` | `/workspace-settings/update-live-chat-sidebar` | Update workspace settings for the live chat sidebar |

#### Request Body

Send a JSON object with a `data` array containing the feature flags you want to activate:

```json
{
  "data": [
    "hide_xxx"
  ]
}
```

#### Available Values

Pass any combination of the following flags in the `data` array:

**Sidebar Layout**
`single_bot_style` · `disable_sidebar`

**Conversation Filters**
`hide_unanswered` · `hide_my_groups` · `hide_collaborating` · `hide_supervised` · `hide_unassigned` · `hide_agents` · `hide_agent_groups` · `hide_status` · `hide_spam` · `hide_invalid` · `hide_unread` · `hide_unsubscribed` · `hide_segments` · `hide_channels`

**Channel Filters**
`hide_channel_facebook` · `hide_channel_instagram` · `hide_channel_whatsapp` · `hide_channel_whatsapp_cloud` · `hide_channel_telegram` · `hide_channel_tiktok` · `hide_channel_apple` · `hide_channel_google` · `hide_channel_line` · `hide_channel_viber` · `hide_channel_vk` · `hide_channel_wechat` · `hide_channel_web` · `hide_channel_sso-google` · `hide_channel_sso-facebook` · `hide_channel_sso-email`

**Display Options**
`show_labels` · `show_boards` · `show_lead_status` · `show_department`

#### Response Example

```json
{
  "data": [
    "hide_xxx"
  ],
  "status": "ok"
}
```

#### What's New
- 🖥️ **Full programmatic control over the Live Chat sidebar layout** — show or hide any conversation filter, channel tab, or UI panel
- 📦 No path parameters required — all configuration passed in the request body as a `data` array
- 🔑 Requires **Manage Team** scope on your API token
- ✅ 200 response confirms the active flags; 400 returns `{ "message": "Error message" }`

#### How to Use
1. Authenticate with your API key (**Manage Team** scope required)
2. Call `POST /workspace-settings/update-live-chat-sidebar`
3. Pass a JSON body with the `data` array listing all flags you want **active**
4. Flags not included in the array are treated as disabled/visible by default

Full API docs: [api#/Workspace/workspaceSettingsLiveChatSidebarUpdate](https://www.uchat.com.au/api#/Workspace/workspaceSettingsLiveChatSidebarUpdate)

#### Why It Matters
- Partners can standardise Live Chat sidebar layouts across all client workspaces during provisioning
- Combine with `POST /workspace-settings/update-channels` (released same day) for complete workspace configuration automation
- Enables custom whitelabel experiences where only relevant channels and filters are shown per workspace

> 👉 Published: **November 16, 2025** · Scope: **Manage Team**