Update the current organization
org:updateAuthenticationApplies 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.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
If-Match?stringOptional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.
application/json- body
1 <= propertiesname?string1 <= length <= 200retention_days?integer1 <= value <= 3650default_timezone?stringCanonical IANA timezone, for example Asia/Dubai.
1 <= lengthmfa_policy?stringSecond-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.
"off""optional""required"pii_access_mode?stringFriction 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.
"open""reason""approval"pii_access_grant_days?integerLifetime in days of an approved break-glass request; 0 never expires. Same entitlement rule as pii_access_mode.
0 <= value <= 365pii_masking?stringenabled 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.
"enabled""disabled"ai_connectors?AIConnectorsModeWhether 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.
"enabled""read_only""disabled"Updated organization, or the unchanged document for a semantic no-op.
application/json- response
id*stringuuidslug*string1 <= lengthname*string1 <= length <= 200retention_days*integer1 <= value <= 3650default_timezone*stringCanonical IANA timezone.
1 <= lengthmfa_policy*stringSecond-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.
"off""optional""required"pii_access_mode*stringHow 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.
"open""reason""approval"pii_access_grant_days*integerHow 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.
0 <= value <= 365pii_masking*stringWhether 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.
"enabled""disabled"ai_connectors*AIConnectorsModeWhether 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.
"enabled""read_only""disabled"version*integerint641 <= valuecreated_at*stringdate-timeupdated_at*stringdate-timecurl -X PATCH 'https://api.kejue.co/v1/orgs/current' \ -H 'Content-Type: application/json' \ -d '{}'{ "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"}