createOrganizationDomain

@FormUrlEncoded
@POST(value = "organizations/{organization_id}/domains")
abstract suspend fun createOrganizationDomain(@Path(value = "organization_id") organizationId: String, @Field(value = "name") name: String): ClerkResult<OrganizationDomain, ClerkErrorResponse>

Creates a new domain for an organization.

Return

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

Parameters

organizationId

The unique identifier of the organization

name

The domain name to create

See also