create

abstract fun create(title: String, teamId: String?, handler: CompletionHandler<Space>)

Creates a space. The authenticated user is automatically added as a member of the space. See the Memberships API to learn how to add more people to the space.

Since

0.1

Parameters

title

A user-friendly name for the space.

teamId

If not null, this space will be associated with the team by team id. Otherwise, this space is not associated with any team. (Derived parameter: Use TeamClient.list to get a list of teams. Then use Team.id to retrieve the teamId)

handler

A closure to be executed once the request has finished.