Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 4.29 KB

File metadata and controls

49 lines (33 loc) · 4.29 KB

OrganizationDomainSDK

(organization_domain)

Overview

Available Operations

  • update - Update an organization domain.

update

Updates the properties of an existing organization domain.

Example Usage

from clerk_backend_api import Clerk

with Clerk(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as s:
    res = s.organization_domain.update(organization_id="<id>", domain_id="<id>", enrollment_mode="<value>", verified=False)

    if res is not None:
        # handle response
        pass

Parameters

Parameter Type Required Description
organization_id str ✔️ The ID of the organization the domain belongs to
domain_id str ✔️ The ID of the domain
enrollment_mode OptionalNullable[str] The enrollment_mode for the new domain. This can be automatic_invitation, automatic_suggestion or manual_invitation
verified OptionalNullable[bool] The status of the domain's verification
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.OrganizationDomain

Errors

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