create
abstract fun create(spaceId: String, personId: String?, personEmail: String?, isModerator: Boolean = false, handler: CompletionHandler<Membership>)
Adds a person to a space by person id; optionally making the person a moderator.
Since
0.1
Parameters
space Id
The identifier of the space where the membership belongs. (Derived parameter: Use SpaceClient.list to get the list of spaces. Then use Space.id to retrieve the spaceId)
person Id
The identifier of the person who has the memberships. (Derived parameter: Use MembershipClient.list to get the list of members. Then use Membership.personId to get the personId of the member).
person Email
The email address of the person to be added. (Derived parameter: Use MembershipClient.list to get the list of members. Then use Membership.personEmail to get the email address of the member).
is Moderator
If true, make the person a moderator of the space. The default is false.
handler
an instance of CompletionHandler