(instanceSettings)
- update - Update instance settings
- updateRestrictions - Update instance restrictions
- updateOrganizationSettings - Update instance organization settings
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\UpdateInstanceRequestBody();
$response = $sdk->instanceSettings->update(
request: $request
);
if ($response->statusCode === 200) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\UpdateInstanceRequestBody | ✔️ | The request object to use for the request. |
?Operations\UpdateInstanceResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors58 | 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Updates the restriction 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\UpdateInstanceRestrictionsRequestBody();
$response = $sdk->instanceSettings->updateRestrictions(
request: $request
);
if ($response->instanceRestrictions !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\UpdateInstanceRestrictionsRequestBody | ✔️ | The request object to use for the request. |
?Operations\UpdateInstanceRestrictionsResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors59 | 402, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |
Updates the organization settings of the 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\UpdateInstanceOrganizationSettingsRequestBody();
$response = $sdk->instanceSettings->updateOrganizationSettings(
request: $request
);
if ($response->organizationSettings !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\UpdateInstanceOrganizationSettingsRequestBody | ✔️ | The request object to use for the request. |
?Operations\UpdateInstanceOrganizationSettingsResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors61 | 402, 404, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |