# PUT /api/v1/advisory-firms/{firm_id}

> Update advisory firm

- **Tag:** advisory-firms
- **Operation ID:** `update_firm_api_v1_advisory_firms__firm_id__put`

## Description

Update advisory firm details.

## Authentication

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

## Parameters

- `firm_id` (path, string, required)

## Request body

Schema: `AdvisoryFirmUpdateRequest`

- `name` (string)
- `address` (string)
- `ein` (string)
- `logo_url` (string)
- `stripe_customer_id` (string)
- `client_messaging_enabled` (boolean)
- `ap_automation_enabled` (boolean)
- `slack_webhook_url` (string) — Slack Incoming Webhook URL. Set to empty string to disconnect.
- `client_visible_integrations` (array · string) — Integration IDs visible to clients. Valid values: stripe, plaid, ramp, square, shopify, slack.

## Responses

### 200 — Successful Response

Schema: `AdvisoryFirmResponse`

- `name` (string · required) — Firm name.
- `address` (string) — Firm business address.
- `ein` (string) — Tax Employer Identification Number.
- `logo_url` (string) — URL or S3 key for the firm logo.
- `stripe_customer_id` (string) — Stripe customer ID for subscription billing.
- `client_messaging_enabled` (boolean) — Whether clients can use the messaging portal.
- `ap_automation_enabled` (boolean) — Whether clients see the AP automation bills page in the client portal.
- `client_visible_integrations` (array · string) — Integration IDs visible to clients in the client portal.
- `id` (string · required) — Advisory firm UUID.
- `slack_connected` (boolean) — Whether a Slack webhook URL is configured.
- `slack_webhook_url_masked` (string) — Masked Slack webhook URL (never exposes the full secret).

### 400 — Bad Request - Invalid input

### 401 — Unauthorized - Authentication required

### 403 — Forbidden - Insufficient permissions

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

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

## Code samples

### cURL

```bash
curl -X PUT 'https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "address": "string",
  "ein": "string",
  "logo_url": "string",
  "stripe_customer_id": "string",
  "client_messaging_enabled": false
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}', {
  method: 'PUT',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "name": "string",
  "address": "string",
  "ein": "string",
  "logo_url": "string",
  "stripe_customer_id": "string",
  "client_messaging_enabled": false
}),
});
const data = await response.json();
```

### Python

```python
import httpx

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

payload = {
  "name": "string",
  "address": "string",
  "ein": "string",
  "logo_url": "string",
  "stripe_customer_id": "string",
  "client_messaging_enabled": false
}

response = httpx.put("https://api.ondayzero.com/api/v1/advisory-firms/{firm_id}", headers=headers, json=payload)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/advisory-firms/update-firm
- OpenAPI slice: https://www.ondayzero.com/docs/reference/advisory-firms/update-firm/openapi.json
- Other endpoints in **advisory-firms**: https://www.ondayzero.com/docs/reference/advisory-firms
