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

spaceId

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)

personId

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).

personEmail
isModerator

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

handler

an instance of CompletionHandler