(betaFeatures())
- updateInstanceSettings - Update instance settings
updateDomain- Update production instance domain⚠️ Deprecated- changeProductionInstanceDomain - Update production instance domain
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.UpdateInstanceAuthConfigRequestBody;
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("<YOUR_BEARER_TOKEN_HERE>")
.build();
UpdateInstanceAuthConfigRequestBody req = UpdateInstanceAuthConfigRequestBody.builder()
.build();
UpdateInstanceAuthConfigResponse res = sdk.betaFeatures().updateInstanceSettings()
.request(req)
.call();
if (res.instanceSettings().isPresent()) {
// handle response
}
}
}
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.UpdateProductionInstanceDomainRequestBody;
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("<YOUR_BEARER_TOKEN_HERE>")
.build();
UpdateProductionInstanceDomainRequestBody req = UpdateProductionInstanceDomainRequestBody.builder()
.build();
UpdateProductionInstanceDomainResponse res = sdk.betaFeatures().updateDomain()
.request(req)
.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 | */* |
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.
package hello.world;
import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.errors.ClerkErrors;
import com.clerk.backend_api.models.operations.ChangeProductionInstanceDomainRequestBody;
import com.clerk.backend_api.models.operations.ChangeProductionInstanceDomainResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ClerkErrors, Exception {
Clerk sdk = Clerk.builder()
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();
ChangeProductionInstanceDomainRequestBody req = ChangeProductionInstanceDomainRequestBody.builder()
.build();
ChangeProductionInstanceDomainResponse res = sdk.betaFeatures().changeProductionInstanceDomain()
.request(req)
.call();
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
ChangeProductionInstanceDomainRequestBody | ✔️ | The request object to use for the request. |
ChangeProductionInstanceDomainResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ClerkErrors | 400, 422 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |