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 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.
Variable | Type | Description | Optional |
---|---|---|---|
userUniqueId | string | uuid of user | ✔️ |
userName | string | user name of user | ✔️ |
imageUrl | string | image url of user |
Edit Profile Response
List of parameters in the response.
Variable | Type | Description |
---|---|---|
success | boolean | API success status |
error_message | string | Error message in case of failure |