createOrganization

@FormUrlEncoded
@POST(value = "organizations")
abstract suspend fun createOrganization(@Field(value = "name") name: String): ClerkResult<Organization, ClerkErrorResponse>

Creates a new organization.

Return

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

Parameters

name

The name of the organization to create

See also

com.clerk.api.organizations.create