Wechat Work Node icon

Wechat Work Node

Wechat Work Node

应用群聊 → 修改群聊会话

AI-generated

Summary

Modify an existing application group chat in WeChat Work by updating its name, changing the group owner, adding members, or removing members.

Inputs

  • *群聊ID (required) — The unique identifier of the group chat to modify.
  • 新的群聊名 — New name for the group chat, limited to 50 UTF-8 characters; longer names will be truncated.
  • 新群主ID — UserID of the new group owner.
  • 添加成员的ID列表 — List of UserIDs to add as new members to the group chat.
  • 踢出成员的ID列表 — List of UserIDs to remove from the group chat.

Output shape

a JSON object representing the WeChat Work API response indicating success or failure of the modification request

The response follows the standard WeChat Work API error response format with errcode and errmsg fields. No pagination or list structures are involved.

Examples

Example 1: Updating the name and owner of a group chat while adding and removing members

Provide the chatid of the target group chat, optionally specify a new name, new group owner userid, an array of userids to add, and an array of userids to remove. The node sends a POST request to the /cgi-bin/appchat/update endpoint to apply the changes and returns the API response.

Links

Discussion