Browse Platform API
Platform API

Before updating group member information

Copy

Validate or adjust fields before a group member profile is updated.

HTTP request

POST {WEBHOOK_ADDRESS}/callbackBeforeSetGroupMemberInfoCommand

Request body

PropertyTypeDescription
callbackCommandstringcallbackBeforeSetGroupMemberInfoCommand.
groupIDstringGroup ID.
userIDstringMember user ID.
nickNamestringGroup nickname, when changed.
faceURLstringAvatar URL, when changed.
roleLevelintGroup role level, when changed.
exstringExtension data, when changed.

Response

Return the common before-event fields from Webhooks overview. The response may return nickName, faceURL, roleLevel, and ex to replace the pending values.

Processing rules

  • Configuration key: beforeSetGroupMemberInfo.
  • OpenIM waits synchronously. Use nextCode: 1 to reject the update; timeout behavior follows failedContinue.