lorandd
February 11, 2024, 8:00am
1
Hello, according to Update User Information - Amity Docs
I should be able to update the user role, but the “role” doesn’t seem to be list of accepted properties
export const updateUser = async (
userId: Amity.User[‘userId’],
patch: Patch<
Amity.User,
‘displayName’ | ‘description’ | ‘avatarFileId’ | ‘avatarCustomUrl’ | ‘metadata’
,
): Promise<Amity.Cached<Amity.User>> => {
“@amityco /ts-sdk”: “^6.17.2”,
I’m missing something?
Thanks
Hello @lorandd , let us confirm with the team and will get back to you on this.
Hello @lorandd , we have checked with the team, and updating the role is not available through the SDK. We have accordingly updated the documentation. Apologies for any inconvenience caused.
lorandd
February 13, 2024, 11:36am
4
oh… and how can I update the role then?
You can update them via the API: Amity API , as we typically reserve this action for admins.