(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;
$security = '<YOUR_BEARER_TOKEN_HERE>';
$sdk = Backend\ClerkBackend::builder()->setSecurity($security)->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\ClerkErrors86 | 400, 404, 422 | application/json |
Errors\SDKException | 4XX, 5XX | */* |