updateEnrollmentMode

@FormUrlEncoded
@POST(value = "organizations/{organization_id}/domains/{domain_id}/update_enrollment_mode")
abstract suspend fun updateEnrollmentMode(@Path(value = "organization_id") organizationId: String, @Path(value = "domain_id") domainId: String, @Field(value = "enrollment_mode") enrollmentMode: String, @Field(value = "delete_pending") deletePending: Boolean? = null): ClerkResult<OrganizationDomain, ClerkErrorResponse>

Updates the enrollment mode for an organization domain.

Return

A ClerkResult containing either the updated OrganizationDomain on success or a ClerkErrorResponse on failure

Parameters

organizationId

The unique identifier of the organization

domainId

The unique identifier of the domain

enrollmentMode

The new enrollment mode to set

deletePending

Whether to delete pending invitations (optional)

See also