# PATCH /company/settings/tag-palette

**Resource:** [Company](./company.md)  
**Scopes:** `company:write`  
**Write operation:** yes

Replace the company-wide tag palette. Accepts an array of {name, color} objects directly (or wrapped in a "tags" key). Duplicates with the same name (case-insensitive) are deduplicated -- last entry wins. Replaces the entire palette.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `(body)` | body | object[] | { tags: object[] } | yes | Array of tag objects. Each tag needs name (string) and color (hex string, e.g. "#ef4444"). |

## Request example

```bash
curl -X PATCH \
  "${API_BASE_URL}/company/settings/tag-palette" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    { "name": "Hot Lead", "color": "#ef4444" },
    { "name": "Priority", "color": "#f97316" },
    { "name": "Follow Up", "color": "#3b82f6" }
  ]'
```

## Response example

```json
{
  "data": [
    { "name": "Hot Lead", "color": "#ef4444" },
    { "name": "Priority", "color": "#f97316" },
    { "name": "Follow Up", "color": "#3b82f6" }
  ],
  "meta": { "credits_remaining": 9489, "url": "https://app.trustpager.com/settings/crm" }
}
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`