update
Updates settings on the current member's organization. Calls the PUT /sdk/v1/b2b/organizations/me endpoint. Requires an active session and appropriate RBAC permissions.
Kotlin:
StytchB2B.organizations.update(
B2BOrganizationsUpdateParameters(organizationName = "Acme Corp")
)iOS:
let params = B2BOrganizationsUpdateParameters(organizationName: "Acme Corp")
let response = try await StytchB2B.organizations.update(params)React Native:
StytchB2B.organizations.update({ organizationName: "Acme Corp" })Return
B2BOrganizationsUpdateResponse containing the updated organization.
Parameters
IB2BOrganizationsUpdateParameters
organizationName?— Updated display name for the organization.organizationSlug?— Updated URL slug for the organization.organizationLogoUrl?— Updated logo URL.ssoDefaultConnectionId?— Default SSO connection ID.ssoJitProvisioning?— JIT provisioning policy for SSO ("ALL_ALLOWED","RESTRICTED","NOT_ALLOWED").ssoJitProvisioningAllowedConnections?— List of SSO connection IDs allowed for JIT provisioning.emailAllowedDomains?— Allowed email domains for the organization.emailJitProvisioning?— JIT provisioning policy for email-based auth.emailInvites?— Email invite policy ("ALL_ALLOWED","RESTRICTED","NOT_ALLOWED").authMethods?— Authentication methods policy.allowedAuthMethods?— List of allowed auth methods.mfaPolicy?— MFA requirement policy.mfaMethods?— MFA methods policy.allowedMfaMethods?— List of allowed MFA methods.Additional organization-level configuration fields.
Throws
if the request fails or the caller lacks permission.
if the coroutine is cancelled.