(betaFeatures)
- updateInstanceSettings - Update instance settings
updateDomain- Update production instance domain⚠️ Deprecated- changeProductionInstanceDomain - Update production instance domain
Updates the settings of an instance
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
use Clerk\Backend\Models\Operations;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$request = new Operations\UpdateInstanceAuthConfigRequestBody();
$response = $sdk->betaFeatures->updateInstanceSettings(
request: $request
);
if ($response->instanceSettings !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\UpdateInstanceAuthConfigRequestBody | ✔️ | The request object to use for the request. |
?Operations\UpdateInstanceAuthConfigResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors51 | 402, 422 | application/json |
Errors\SDKException | 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.
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
use Clerk\Backend\Models\Operations;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$request = new Operations\UpdateProductionInstanceDomainRequestBody();
$response = $sdk->betaFeatures->updateDomain(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\UpdateProductionInstanceDomainRequestBody | ✔️ | The request object to use for the request. |
?Operations\UpdateProductionInstanceDomainResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors52 | 400, 422 | application/json |
Errors\SDKException | 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.
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
use Clerk\Backend\Models\Operations;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->build();
$request = new Operations\ChangeProductionInstanceDomainRequestBody();
$response = $sdk->betaFeatures->changeProductionInstanceDomain(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\ChangeProductionInstanceDomainRequestBody | ✔️ | The request object to use for the request. |
?Operations\ChangeProductionInstanceDomainResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors60 | 400, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |