Team notifications

Update time: 2024/03/14 18:45:33

Team notifications belongs to notification types. For some team events, all team members will receive a team notification. The notification object has a field attach that contains additional information. The attach has a field type to identify the type of notifications.

Notification events

Type
Description
Field
updateTeam team information update. After updating the team information, all team members will receive a team notification of type updateTeam
  • from: the account updating the team information
  • to: the team ID
  • team in attach: updated team information
addTeamMembers Invite users to join a team After inviting people into the team, all team members will receive a team notification of type addTeamMembers
  • from: the account inviting people
  • to: team ID
  • attach:
    • team: corresponding team object
    • accounts: list of accounts invited.
    • members: list of members that have joined the team.
removeTeamMembers Removing members After removing a member out of the team, all members will receive a notification of type removeTeamMembers
  • from: the account removing a member
  • to: The team ID
  • attach:
    • team: the team object
    • accounts: the list of the removed accounts.
    • li>
acceptTeamInvite If team owners and administrators invite people to join the team, the invited people will receive a system notification of type teamInvite (see [System notifications for team events](#System notifications for team events))**
  • If the invitation is accepted, all members of the team will receive a team notification of type acceptTeamInvite
  • If the invitation is rejected, the inviter will receive a system notification of type rejectTeamInvite (see [System notifications for team events](#System notifications for team events))
  • from: the account who accepts the invitation
  • to: the team ID
  • attach:
    • team: the team object
    • members: the list of members who received invitations to join the team
passTeamApply Users can request to join an advanced team, and the team owner and administrators will receive a system notification of type applyTeam (see [System notifications for team events](#System notifications for team events)). After receiving a request to join the team, the team owner and administrators can choose to approve or reject the request.
  • If the request is approved, all members of the team will receive a team notification of type passTeamApply
  • If the request is rejected, the applicant will receive a system notification of type rejectTeamApply (see [System notifications for team events](#System notifications for team events))
  • from: the account requesting to join the team
  • to: the team ID
  • attach:
      team: the team object
    • account: the account of the applicant
    • members: the list of team members whose requests are accepted.
addTeamManagers [Add administrators](/docs/TM5MzM5Njk/DI3MjI1Nzc#Add team manager), all team members will receive a team notification of type addTeamManagers
  • from: the account who added the administrator
  • to: the team ID
  • attach:
    • accounts: list of accounts added as Administrator
    • members: detailed information about members added as administrator
removeTeamManagers [Remove administrators](/docs/TM5MzM5Njk/DI3MjI1Nzc#Remove team manager), all team members will receive a team notification of type removeTeamManagers
  • from: the account removing the administrator
  • to: the team ID
  • attach:
      accounts: list of removed administrator
    • members: detailed information about members removed as administrator.
leaveTeam Leave a team. All members in the team receive a team notification of type leaveTeam
  • from: members leaving the team.
  • to: team Id
  • attach:
    • team: team object.
dismissTeam [Dismiss the team](/docs/TM5MzM5Njk/DI3MjI1Nzc#Dismiss the team), all team member objects will receive a team notification message of type dismissTeam
  • from: account deleting the team
  • to: team ID
transferTeam Transfer the ownership of a team, all members in the team receive a team notification of type transferTeam.
    from: account transferring the ownership of a team
  • to: team Id.
  • attach:
    • team: team object
    • account: new team owner
    • members: list of team members including the new and original team owner.
updateTeamMute [Updating the mute state of a member](/docs/TM5MzM5Njk/DI3MjI1Nzc#Updating the mute state of a member), all team members receive a notification of type updateTeamMute.
  • from: the account muting or unmuting a member
  • to: team Id
  • attach:
    • team: team object
    • account: muted account
    • members: detailed information about muted members.

System notifications for team events

The following types of notifications belongs to system notifications, not notification messages. For the difference between notification messages and system notifications, see [Notification Messages and System Notifications](https://doc.yunxin.163.com/messaging/guide/zg3NzA3NTA?platform=web#Notification Messages and System Notifications).

Type
Description
Field
teamInvite Invite a user to a team
  • from: inviter’s account
  • to: team ID
  • attach:
    • team: team object
rejectTeamInvite Reject an invitation
  • from: the account rejecting the invitation
  • to: the team ID
applyTeam Request to join the team
  • from: the account of the applicant
  • to: the team ID
rejectTeamApply Reject a request to join a team
  • from: the account rejecting the request
  • to: the team ID
  • attach:< ul>
  • team: the team object
Was this page helpful?
Yes
No
  • Notification events
  • System notifications for team events