Browse Platform API
Platform API

Before updating group information

Copy

Validate or adjust group fields before group information is updated.

HTTP request

POST {WEBHOOK_ADDRESS}/callbackBeforeSetGroupInfoCommand

Request body

The payload contains callbackCommand: callbackBeforeSetGroupInfoCommand, operationID, groupID, and the pending groupName, notification, introduction, faceURL, ex, needVerification, lookMemberInfo, and applyMemberFriend values.

Response

Return the common before-event fields from Webhooks overview. The response may return the pending group fields to replace the values OpenIM is about to store.

Processing rules

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