Office -- Update AI Settings

Updates the AI settings of an office the same way the admin portal does. Settings that are omitted are left unchanged. Unlike JSON Merge Patch, an explicit null does not clear a setting:
every setting is a boolean or a fixed choice with no cleared state, so null is rejected with a 400, as is a request that sets nothing or lists a PII type that is not supported. A 422 answers a valid request that breaks a rule: it enables AI training for a customer with compliance requirements (BAA), changes anything but PII redaction while AI is disabled for the company,
enables AI for an office that does not support it, or sets PII redaction on an office without PII redaction settings. The caller must be a company admin, an admin of the office, or have write access to AI settings for the office; a company-level API key can also update any office of its company.

Example request body: {"enable_ai": true, "announce_ai": true,
"announce_auto_start_ai_direction": "inbound_only", "default_auto_start": false}

Rate limit: 1200 per minute.

Path Params
int64
required

The office's id.

Body Params
boolean

Whether the office allows its data to be used to train AI models.

boolean

Whether callers hear an announcement that AI is used on the call.

string
enum

Which calls get the announcement when AI starts automatically.

Allowed:
boolean

Whether users can pause AI during a call by default.

boolean

Whether AI starts automatically on calls by default.

boolean

Whether the real-time AI view is shown by default.

boolean

Whether Call AI is enabled for the office.

boolean

Whether PII redaction is enabled. Only for offices with PII redaction settings.

boolean

Whether PII is redacted from audio recordings. Only for offices with PII redaction settings.

boolean

Whether PII redaction runs in high sensitivity mode. Only for offices with PII redaction settings.

boolean

Whether PII is redacted from transcripts. Only for offices with PII redaction settings.

pii_redaction_types
array of strings

The types of PII to redact, at most 25, each one of the listed values. Only for offices with PII redaction settings.

pii_redaction_types
Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json