# 修改群信息(含拉人等)

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /wework/sendRawMessage:
    post:
      summary: 修改群信息(含拉人等)
      deprecated: false
      description: |-
        **功能介绍：**
        - 由机器人修改一个指定名称的外部群，同时支持修改群名、拉人、踢人、修改群公告、修改群备注、使用群模板等操作

        **注意：**
        1. 如果群名改过备注则groupName只能使用备注名调用
        2. 请确认机器人有相关群操作权限
        3. 支持配置群模板（可禁止成员修改群名等功能）
      tags:
        - 指令消息
      parameters:
        - name: robotId
          in: query
          description: 客户端链接唯一标识
          required: true
          example: '{{robot_id}}'
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                socketType:
                  type: integer
                list:
                  type: array
                  items:
                    type: object
                    properties:
                      type:
                        type: integer
                        description: 固定值=207
                      groupName:
                        description: 待修改的群名
                        type: string
                      newGroupName:
                        type: string
                        description: 修改群名 选填
                      newGroupAnnouncement:
                        type: string
                        description: 修改群公告 选填
                      selectList:
                        type: array
                        items:
                          type: string
                        description: 添加群成员名称列表/拉人 选填
                      showMessageHistory:
                        type: boolean
                        description: 拉人是否附带历史记录 选填
                      removeList:
                        type: array
                        items:
                          type: string
                        description: 移除群成员名称列表/踢人 选填
                      groupRemark:
                        type: string
                        description: 修改群备注(选填)
                      groupTemplate:
                        type: string
                        description: 修改群模板(选填)
                    x-apifox-orders:
                      - type
                      - groupName
                      - newGroupName
                      - newGroupAnnouncement
                      - groupRemark
                      - groupTemplate
                      - selectList
                      - showMessageHistory
                      - removeList
                    required:
                      - groupName
                      - type
              required:
                - socketType
                - list
              x-apifox-orders:
                - socketType
                - list
            example:
              socketType: 2
              list:
                - type: 207
                  groupName: 测试群01
                  newGroupName: 测试群02
                  newGroupAnnouncement: 修改的群公告（选填）
                  selectList: []
                  showMessageHistory: false
                  removeList: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: number
                  message:
                    type: string
                  data:
                    type: string
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 指令消息
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1035094/apis/api-23520590-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.worktool.ymdyes.cn
    description: 正式环境
security: []

```