---
title: "Opt a business in/out of dispatcher provider-writes and set its provider (agents:write). This is the only write path for dispatcher_provider_write_config — the table has no client-writable RLS policy. A row here is only half the gate: the global DISPATCHER_PROVIDER_WRITES_ENABLED env flag must also be on for any external write to happen."
method: PATCH
path: "/v1/dispatcher-provider-config"
---

# Opt a business in/out of dispatcher provider-writes and set its provider (agents:write). This is the only write path for dispatcher_provider_write_config — the table has no client-writable RLS policy. A row here is only half the gate: the global DISPATCHER_PROVIDER_WRITES_ENABLED env flag must also be on for any external write to happen.

`PATCH /v1/dispatcher-provider-config`

## Request

- Base URL: `https://www.kaicalls.com/api`
- URL: `https://www.kaicalls.com/api/v1/dispatcher-provider-config`
- Auth: HTTP bearer

## Request body

- object
  - `business_id` string, required
  - `enabled` boolean
  - `provider` 'logging_stub' | 'gohighlevel' | 'airtable' | 'litify' | 'google_calendar'
  - `provider_config` object: Non-secret ids only (locationId/baseId/calendarId/...) — never raw provider credentials.
  - `status` 'active' | 'degraded' | 'disabled'

## Response `200`

Updated provider-write config

---

[API](https://skmtc.dev/kaicalls/apis/kaicalls-public-api.md) · [All operations](https://skmtc.dev/kaicalls/apis/kaicalls-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaicalls/apis/kaicalls-public-api/revisions/e607fc6cf36e?raw)
