Skip to Content
Organization and audit

Update the current organization

Permissionorg:updateAuthentication
PATCH
/orgs/current

Applies a true partial update. Omitted fields remain unchanged. Changing retention_days requires the custom_retention entitlement; omitting it or sending the stored value does not. A semantic no-op preserves the version and ETag. Use If-Match to prevent lost updates.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 200
retention_days?integer
Range1 <= value <= 3650
default_timezone?string

Canonical IANA timezone, for example Asia/Dubai.

Length1 <= length
mfa_policy?string

Second-factor requirement for password sign-in. Requires the mfa entitlement to CHANGE; a write of the current value is always permitted so automation can converge without the add-on.

Value in"off""optional""required"
pii_access_mode?string

Friction in front of un-redacted reads of call data — open, reason, or approval. Requires the pii_redaction_config entitlement to CHANGE; a write of the current value is always permitted so automation can converge without the add-on.

Value in"open""reason""approval"
pii_access_grant_days?integer

Lifetime in days of an approved break-glass request; 0 never expires. Same entitlement rule as pii_access_mode.

Range0 <= value <= 365
pii_masking?string

enabled masks PII when calls are stored; disabled stores calls as spoken (credentials in tool I/O stay masked). Applies to calls recorded after the change. Same entitlement rule as pii_access_mode.

Value in"enabled""disabled"
ai_connectors?AIConnectorsMode

Whether members may connect AI assistants (Claude and other MCP clients) to this team through OAuth. enabled — a connected app acts as the member, limited by their role and the scopes they approved; read_only — connected apps keep only read access; disabled — every connected-app request for this team is refused with ai_connectors_disabled. Teams with a signed BAA start disabled. Changing it requires org:update.

Value in"enabled""read_only""disabled"

Response Body

Updated organization, or the unchanged document for a semantic no-op.

application/json
  1. response
id*string
Formatuuid
slug*string
Length1 <= length
name*string
Length1 <= length <= 200
retention_days*integer
Range1 <= value <= 3650
default_timezone*string

Canonical IANA timezone.

Length1 <= length
mfa_policy*string

Second-factor requirement for PASSWORD sign-in to this organization. off asks for no second factor, optional lets members enrol and challenges those who have, required obliges every member to enrol before using the dashboard. Federated (OIDC) identities are governed by the upstream identity provider instead. Changing this requires the mfa entitlement; reading it never does.

Value in"off""optional""required"
pii_access_mode*string

How much friction stands in front of an un-redacted read of call data. open asks for nothing, reason requires a written justification per read, approval requires a request another member approves before any read is allowed. It never changes WHICH permission is required — pii-access:unmask still gates raw transcripts and raw tool I/O, calls:download-recording still gates audio. Changing this requires the pii_redaction_config entitlement; reading it never does.

Value in"open""reason""approval"
pii_access_grant_days*integer

How many days an approved break-glass request stays usable. 0 means it never expires. Stamped onto a request when it is approved, so shortening this later never cuts short an approval already granted. Only meaningful when pii_access_mode is approval.

Range0 <= value <= 365
pii_masking*string

Whether calls are PII-masked when they are stored. enabled masks the built-in identifier set plus the organization's custom terms. disabled (the default for new organizations) stores transcripts, tool input/output, guardrail reasons and context messages as spoken; credentials in tool I/O (authorization headers, tokens, passwords, API keys, PINs, card security codes) stay masked. Applies to calls recorded after the change — stored calls are never rewritten. Changing this requires the pii_redaction_config entitlement; reading it never does.

Value in"enabled""disabled"
ai_connectors*AIConnectorsMode

Whether members may connect AI assistants (Claude and other MCP clients) to this team through OAuth. enabled — a connected app acts as the member, limited by their role and the scopes they approved; read_only — connected apps keep only read access; disabled — every connected-app request for this team is refused with ai_connectors_disabled. Teams with a signed BAA start disabled. Changing it requires org:update.

Value in"enabled""read_only""disabled"
version*integer
Formatint64
Range1 <= value
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.kejue.co/v1/orgs/current' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "name": "string",  "retention_days": 1,  "default_timezone": "string",  "mfa_policy": "off",  "pii_access_mode": "open",  "pii_access_grant_days": 0,  "pii_masking": "enabled",  "ai_connectors": "enabled",  "version": 1,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}