Update member
Changes the role of a person, or sends an invitation again.
opensend.members.update(id, input?)opensend members updateInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
rolestringA new role:
admin,memberorviewer.One of
adminmemberviewerresendbooleanSend the invitation again. Only for someone who has not joined yet.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"member"Always
member.idstringThe id of the member.
namestringThe name of the person.
emailstringThe address of the person.
rolestringWhat the member may do:
owner,admin,memberorviewer.One of
owneradminmemberviewerstatusstringinviteduntil the person signs in,activeafter that.One of
activeinvitedinvitedBystringThe name of who invited them.
invitedAtstring | nullWhen the invitation was sent, or
nullfor the person who made the workspace.lastActiveAtstring | nullWhen the member last used the workspace, or
null.invitationUrlstring | nullA link that lets an invited person choose a password and join without an emailed code, or
null. Only the owner of a server a team hosts itself is given it, signed in, while the invitation is waiting.createdAtstringWhen the member was added.