(organizationDomain)
- update - Update an organization domain.
Updates the properties of an existing organization domain.
declare(strict_types=1);
require 'vendor/autoload.php';
use Clerk\Backend;
use Clerk\Backend\Models\Operations;
$sdk = Backend\ClerkBackend::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->build();
$requestBody = new Operations\UpdateOrganizationDomainRequestBody();
$response = $sdk->organizationDomain->update(
organizationId: '<id>',
domainId: '<id>',
requestBody: $requestBody
);
if ($response->organizationDomain !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
organizationId |
string | ✔️ | The ID of the organization the domain belongs to |
domainId |
string | ✔️ | The ID of the domain |
requestBody |
Operations\UpdateOrganizationDomainRequestBody | ✔️ | N/A |
?Operations\UpdateOrganizationDomainResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\ClerkErrors | 400, 404, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |