(organization_domain)
- update - Update an organization domain.
Updates the properties of an existing organization domain.
from clerk_backend_api import Clerk
with Clerk(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as clerk:
res = clerk.organization_domain.update(organization_id="<id>", domain_id="<id>", enrollment_mode="<value>", verified=False)
assert res is not None
# Handle response
print(res)
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. |
Error Type | Status Code | Content Type |
---|---|---|
models.ClerkErrors | 400, 404, 422 | application/json |
models.SDKError | 4XX, 5XX | */* |