(instance_settings )
Updates the settings of an instance
from clerk_backend_api import Clerk
with Clerk (
bearer_auth = "<YOUR_BEARER_TOKEN_HERE>" ,
) as s :
s .instance_settings .update (request = {
"test_mode" : True ,
"hibp" : False ,
"enhanced_email_deliverability" : True ,
"support_email" : "[email protected] " ,
"clerk_js_version" : "2.3.1" ,
"development_origin" : "http://localhost:3000" ,
"allowed_origins" : [
"http://localhost:3000" ,
"chrome-extension://extension_uiid" ,
"capacitor://localhost" ,
],
"url_based_session_syncing" : True ,
})
# Use the SDK ...
Error Type
Status Code
Content Type
models.ClerkErrors
422
application/json
models.SDKError
4XX, 5XX
*/*
Updates the restriction settings of an instance
from clerk_backend_api import Clerk
with Clerk (
bearer_auth = "<YOUR_BEARER_TOKEN_HERE>" ,
) as s :
res = s .instance_settings .update_restrictions (request = {
"allowlist" : False ,
"blocklist" : True ,
"block_email_subaddresses" : True ,
"block_disposable_email_domains" : True ,
"ignore_dots_for_gmail_addresses" : False ,
})
if res is not None :
# handle response
pass
models.InstanceRestrictions
Error Type
Status Code
Content Type
models.ClerkErrors
402, 422
application/json
models.SDKError
4XX, 5XX
*/*
update_organization_settings
Updates the organization settings of the instance
from clerk_backend_api import Clerk
with Clerk (
bearer_auth = "<YOUR_BEARER_TOKEN_HERE>" ,
) as s :
res = s .instance_settings .update_organization_settings (request = {
"enabled" : True ,
"max_allowed_memberships" : 10 ,
"admin_delete_enabled" : False ,
"domains_enabled" : True ,
"domains_enrollment_modes" : [
"automatic_invitation" ,
"automatic_suggestion" ,
],
"creator_role_id" : "creator_role" ,
"domains_default_role_id" : "member_role" ,
})
if res is not None :
# handle response
pass
models.OrganizationSettings
Error Type
Status Code
Content Type
models.ClerkErrors
402, 404, 422
application/json
models.SDKError
4XX, 5XX
*/*