Skip to main content

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

  1. For an user to leave a community, use the editProfile() method of the client you initialised.
  2. Pass in the required parameter which are userUniqueId, userName and imageUrl.
  3. Process the response as per your requirement.
const payload: any = {
userUniqueId: 'dhbq9uuey';
userName: 'Loki';
imageUrl: 'https://image.url.com';
};

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.

VariableTypeDescriptionOptional
userUniqueIdstringuuid of user✔️
userNamestringuser name of user✔️
imageUrlstringimage url of user

Edit Profile Response

List of parameters in the response.

VariableTypeDescription
successbooleanAPI success status
error_messagestringError message in case of failure