{- "object": "instance",
- "id": "string",
- "environment_type": "development",
}
Updates the settings of an instance
test_mode | boolean or null Toggles test mode for this instance, allowing the use of test email addresses and phone numbers. Defaults to true for development instances. |
hibp | boolean or null Whether the instance should be using the HIBP service to check passwords for breaches |
enhanced_email_deliverability | boolean or null The "enhanced_email_deliverability" feature will send emails from "verifications@clerk.dev" instead of your domain. This can be helpful if you do not have a high domain reputation. |
support_email | string or null |
clerk_js_version | string or null |
development_origin | string or null |
allowed_origins | Array of strings For browser-like stacks such as browser extensions, Electron, or Capacitor.js the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages the origin is chrome-extension://extension_uiid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost. |
cookieless_dev | boolean Deprecated Whether the instance should operate in cookieless development mode (i.e. without third-party cookies).
Deprecated: Please use |
url_based_session_syncing | boolean Whether the instance should use URL-based session syncing in development mode (i.e. without third-party cookies). |
Accepted
Invalid request parameters
{- "test_mode": true,
- "hibp": true,
- "enhanced_email_deliverability": true,
- "support_email": "string",
- "clerk_js_version": "string",
- "development_origin": "string",
- "allowed_origins": [
- "string"
], - "cookieless_dev": true,
- "url_based_session_syncing": true
}
{- "errors": [
- {
- "message": "string",
- "long_message": "string",
- "code": "string",
- "meta": { },
- "clerk_trace_id": "string"
}
], - "meta": { }
}
Updates the restriction settings of an instance
Success
Payment required
Invalid request parameters
{- "allowlist": true,
- "blocklist": true,
- "block_email_subaddresses": true,
- "block_disposable_email_domains": true,
- "ignore_dots_for_gmail_addresses": true
}
{- "object": "instance_restrictions",
- "allowlist": true,
- "blocklist": true,
- "block_email_subaddresses": true,
- "ignore_dots_for_gmail_addresses": true
}
Updates the organization settings of the instance
Success
Payment required
Resource not found
Invalid request parameters
{- "enabled": true,
- "max_allowed_memberships": 0,
- "admin_delete_enabled": true,
- "domains_enabled": true,
- "domains_enrollment_modes": [
- "string"
], - "creator_role_id": "string",
- "domains_default_role_id": "string"
}
{- "object": "organization_settings",
- "enabled": true,
- "max_allowed_memberships": 0,
- "max_allowed_roles": 0,
- "max_allowed_permissions": 0,
- "creator_role": "string",
- "admin_delete_enabled": true,
- "domains_enabled": true,
- "domains_enrollment_modes": [
- "manual_invitation"
], - "domains_default_role": "string"
}