create

abstract fun create(teamId: String, personId: String?, personEmail: String?, isModerator: Boolean, handler: CompletionHandler<TeamMembership>)

Adds a person to a team by person id; optionally making the person a moderator of the team.

Since

0.1

Parameters

teamId

The identifier of the team. (Derived parameter: Use TeamClient.list to get a list of teams. Then use Team.id to retrieve the teamId)

personId

The identifier of the person. (Derived parameter: Use MembershipClient.list to get the list of members. Then use Membership.personId to get the personId of the member).

personEmail

The email of the person.

isModerator

If true, make the person a moderator of the team. The default is false.

handler

A closure to be executed once the request has finished.