Edit Profile
The Edit Profile method empowers users to modify their profile information seamlessly. With this function, users can update their user name, profile picture and other details.
Editing a profile
- For an user to leave a community, use the
editProfile()
method of the client you initialised. - Pass in the required parameter which are
userUniqueId
,userName
andimageUrl
. - Process the response of type
LMResponse<Nothing>
as per your requirement.
const payload: any = {
uuid: "ENTER_UUID",
userName: "ENTER_USER_NAME",
imageUrl: "ENTER_PROFILE_IMAGE_URL",
};
const response = await lmChatClient.editProfile(payload);
if (response.success) {
// your function to process the response data
processResponse(response);
} else {
// your function to process error message
processError(response);
}
Edit Profile Payload
List of parameters supported.
Variable | Type | Description | Optional |
---|---|---|---|
userUniqueId | string | uuid of user | ✔️ |
userName | string | user name of user | ✔️ |
imageUrl | string | image url of user |