Skip to content

Latest commit

 

History

History
148 lines (94 loc) · 7.29 KB

File metadata and controls

148 lines (94 loc) · 7.29 KB

InstanceSettings

(instanceSettings)

Overview

Available Operations

update

Updates the settings of an instance

Example Usage

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
}

Parameters

Parameter Type Required Description
$request Operations\UpdateInstanceRequestBody ✔️ The request object to use for the request.

Response

?Operations\UpdateInstanceResponse

Errors

Error Type Status Code Content Type
Errors\ClerkErrors58 422 application/json
Errors\SDKException 4XX, 5XX */*

updateRestrictions

Updates the restriction settings of an instance

Example Usage

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
}

Parameters

Parameter Type Required Description
$request Operations\UpdateInstanceRestrictionsRequestBody ✔️ The request object to use for the request.

Response

?Operations\UpdateInstanceRestrictionsResponse

Errors

Error Type Status Code Content Type
Errors\ClerkErrors59 402, 422 application/json
Errors\SDKException 4XX, 5XX */*

updateOrganizationSettings

Updates the organization settings of the instance

Example Usage

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
}

Parameters

Parameter Type Required Description
$request Operations\UpdateInstanceOrganizationSettingsRequestBody ✔️ The request object to use for the request.

Response

?Operations\UpdateInstanceOrganizationSettingsResponse

Errors

Error Type Status Code Content Type
Errors\ClerkErrors61 402, 404, 422 application/json
Errors\SDKException 4XX, 5XX */*