Update organization settings
const url = 'https://example.com/api/v1/orgs/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allowedModes":["gated"],"apiAllowed":true,"autoJoin":true,"autoJoinRole":"admin","mcpAllowed":true,"name":"example","requireMfa":true,"requireSso":true,"slug":"example","ssoGoogle":true,"ssoMicrosoft":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/orgs/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "allowedModes": [ "gated" ], "apiAllowed": true, "autoJoin": true, "autoJoinRole": "admin", "mcpAllowed": true, "name": "example", "requireMfa": true, "requireSso": true, "slug": "example", "ssoGoogle": true, "ssoMicrosoft": true }'Updates organization name, address slug, delivery-mode restrictions, API/MCP access toggles, domain auto-join, MFA, or SSO policies. Requires owner or admin role and matching entitlements (policies, multiUser, sso).
Requires a session or an org-wide API token; bucket-scoped tokens are rejected with 403.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization ID.
Request Body
Section titled “Request Body”object
Address of the org in named links (/@<slug>/<name>). Changing it breaks every named link of the org.
Responses
Section titled “Responses”Updated organization details
Organization settings, counts, caller role, and entitlements.
object
Delivery modes permitted for links in this org, or null when all instance-supported modes are allowed.
Whether API tokens can be minted and used for this org.
Whether SSO sign-ins matching a verified identity domain join automatically.
Organization membership role from highest to lowest privilege: owner, admin, member, viewer, guest.
Total buckets connected to this organization.
Effective feature flags and quotas for an organization.
object
Whether the organization can query and export the audit log.
Whether custom share-serving domains are allowed.
Custom denial explanations keyed by entitlement.
object
Whether the organization can invite additional members and create teams.
Whether security policies (requireMfa, allowedModes) can be enforced.
Whether proxied delivery links are allowed.
Whether Google/Microsoft SSO policies can be enabled.
personal workspace created with an account, or shared org.
Whether MCP connections are enabled for this org.
Total members in the organization, including pending invites.
Whether browser sessions must complete MFA before accessing this org.
Whether users on verified identity domains must authenticate via SSO.
Organization membership role from highest to lowest privilege: owner, admin, member, viewer, guest.
Address of the org in named share links (/@<slug>/<name>), unique on the instance.
Whether Google SSO is enabled for this org.
Whether Microsoft SSO is enabled for this org.
Example
{ "allowedModes": [ "gated" ], "autoJoinRole": "owner", "kind": "personal", "role": "owner"}Invalid request input or rule violation.
Error returned when request input fails schema validation or violates a domain rule.
object
object
Field-level validation failures, present when schema validation fails.
object
Dot-separated field path.
Human-readable error explanation.
Example
{ "code": "BAD_REQUEST"}Authentication required or credentials invalid.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Plan or license entitlement required.
Error returned when an organization lacks a required plan or license entitlement.
object
object
Feature or quota gate enforced by the active plan or license.
Human-readable error explanation.
Example
{ "code": "PAYMENT_REQUIRED", "data": { "entitlement": "audit" }}Insufficient role, bucket grant, or token scope.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Request conflicts with the current state of the resource.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Unexpected server error. Quote data.requestId when you report it.
Error returned when Sendcrate or one of its providers fails (5xx).
object
object
Error chain with stack traces. Present only when the server runs in development mode.
Request reference to quote when you report the error.
Human-readable error explanation.
Example
{ "code": "INTERNAL_SERVER_ERROR"}