Patch instance configuration
patch_instance_configUpdate part of an instance's configuration (like clerk config patch). Values you send are deep-merged into the current configuration and apply to the live instance immediately; top-level keys you leave out are unchanged. Returns the before and after values of the changed keys and the new config_version. Run with dry_run first to validate and preview the change. Setting connection_oauth_apple.bundle_id for native Sign in with Apple needs a matching iOS app, so register it first with create_ios_application.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application_id": "<application_id>",
"instance": "<instance>",
"config": "<config>"
},
"name": "patch_instance_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Configuration keyed by top-level config key, in the shape get_instance_config returns. get_instance_config_schema lists the valid keys and fields. | |
| dry_run | No | Preview the change without applying it. | |
| instance | Yes | Instance to target: "development", "production", or a full instance ID (ins_…). | |
| destructive | No | Allow changes that delete resources instead of resetting them: session templates, custom OAuth providers, and minimum app versions (a null entry or platform in native_app_minimum_versions). | |
| application_id | Yes | Clerk application ID (app_…). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| dry_run | No | ||
| config_version | No |