- updateInstanceSettings - Update instance settings
updateProductionInstanceDomain- Update production instance domain⚠️ Deprecated
Updates the settings of an instance
package hello.world;
import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.errors.ClerkErrors;
import com.clerk.backend_api.models.operations.UpdateInstanceAuthConfigResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ClerkErrors, Exception {
Clerk sdk = Clerk.builder()
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();
UpdateInstanceAuthConfigResponse res = sdk.betaFeatures().updateInstanceSettings()
.call();
if (res.instanceSettings().isPresent()) {
System.out.println(res.instanceSettings().get());
}
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
request |
UpdateInstanceAuthConfigRequestBody | ✔️ | The request object to use for the request. |
UpdateInstanceAuthConfigResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ClerkErrors | 402, 422 | application/json |
| models/errors/SDKError | 4XX, 5XX | */* |
Change the domain of a production instance.
Changing the domain requires updating the DNS records accordingly, deploying new SSL certificates, updating your Social Connection's redirect URLs and setting the new keys in your code.
WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.
package hello.world;
import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.errors.ClerkErrors;
import com.clerk.backend_api.models.operations.UpdateProductionInstanceDomainResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ClerkErrors, Exception {
Clerk sdk = Clerk.builder()
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();
UpdateProductionInstanceDomainResponse res = sdk.betaFeatures().updateProductionInstanceDomain()
.call();
// handle response
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
request |
UpdateProductionInstanceDomainRequestBody | ✔️ | The request object to use for the request. |
UpdateProductionInstanceDomainResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/ClerkErrors | 400, 422 | application/json |
| models/errors/SDKError | 4XX, 5XX | */* |