Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 3.65 KB

File metadata and controls

64 lines (45 loc) · 3.65 KB

OrganizationDomain

(organizationDomain())

Overview

Available Operations

  • update - Update an organization domain.

update

Updates the properties of an existing organization domain.

Example Usage

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
        }
    }
}

Parameters

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

Response

UpdateOrganizationDomainResponse

Errors

Error Type Status Code Content Type
models/errors/ClerkErrors 400, 404, 422 application/json
models/errors/SDKError 4XX, 5XX */*