Skip to the page

Update member

Changes the role of a person, or sends an invitation again.

members_update
Needs the scopeworkspace:write
Changes data

Arguments

  • idstringRequired

    The id of the item. Up to 64 characters.

  • rolestring

    A new role: admin, member or viewer.

    One ofadminmemberviewer

  • resendboolean

    Send the invitation again. Only for someone who has not joined yet.

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"member"

    Always member.

  • idstring

    The id of the member.

  • namestring

    The name of the person.

  • emailstring

    The address of the person.

  • rolestring

    What the member may do: owner, admin, member or viewer.

    One ofowneradminmemberviewer

  • statusstring

    invited until the person signs in, active after that.

    One ofactiveinvited

  • invitedBystring

    The name of who invited them.

  • invitedAtstring | null

    When the invitation was sent, or null for the person who made the workspace.

  • lastActiveAtstring | null

    When the member last used the workspace, or null.

  • invitationUrlstring | null

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

  • createdAtstring

    When the member was added.