Skip to main content

Update Member Rights

To update member rights, use the updateMemberRights function. This function modifies the permissions and custom titles of a member.

Steps to Update Member Rights

  1. Use the updateMemberRights() function provided by the lmFeedClient object.
  2. Create an instance of UpdateMemberRightsRequest, as shown in the snippet, and pass it to the above method.
  3. Use the response as per your requirement.
import UpdateMemberRightsRequest from "../requests/updateMemberRightsRequest";

try {
const updateMemberRightsRequest = UpdateMemberRightsRequest.builder()
.setUuid(uuid) // UUID of the member
.setIsCM(isCM) // Whether the member is a Community Manager
.setRights(rights) // List of rights assigned to the member
.setCustomTitle(customTitle) // Custom title for the member
.build();
const response = await lmFeedClient.updateMemberRights(
updateMemberRightsRequest
);
// Use the response as per your requirement.
} catch (error) {
// Handle the error as per your requirement.
}

Models

UpdateMemberRightsRequest

VARIABLETYPEDESCRIPTIONOPTIONAL
uuidstringUUID of the member
isCMbooleanWhether the member is a Community Manager
rightsMemberRights[]List of rights assigned to the member
customTitlestringCustom title for the member