(organizationDomain())
- update - Update an organization domain.
Updates the properties of an existing organization domain.
package hello.world;
import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.errors.ClerkErrors;
import com.clerk.backend_api.models.operations.UpdateOrganizationDomainRequestBody;
import com.clerk.backend_api.models.operations.UpdateOrganizationDomainResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ClerkErrors, Exception {
Clerk sdk = Clerk.builder()
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();
UpdateOrganizationDomainResponse res = sdk.organizationDomain().update()
.organizationId("<id>")
.domainId("<id>")
.requestBody(UpdateOrganizationDomainRequestBody.builder()
.build())
.call();
if (res.organizationDomain().isPresent()) {
// 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 |
UpdateOrganizationDomainRequestBody | ✔️ | N/A |
UpdateOrganizationDomainResponse
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ClerkErrors | 400, 404, 422 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |