用户或机器人主动加入群聊
PATCH
/open-apis/im/v1/chats/{chat_id}/members/me_join
自建应用商店应用
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 232004 | Such an app does NOT exist. | 作为操作者的 app_id 不存在,请联系技术支持。 |
400 | 232006 | Your request specifies a chat_id which is invalid. | 无效的 chat_id,请检查chat_id是否正确。 |
400 | 232008 | Your request specifies a chat whose type is NOT supported currently. | 不支持的群模式(chat_mode)或群类型(chat_type)。 |
400 | 232009 | Your request specifies a chat which has already been dissolved. | 群组已被解散。 |
400 | 232010 | Operator and chat can NOT be in different tenants. | 操作者和被操作的群组应该在同一租户下。 |
400 | 232013 | You have reached the limit of maximum number of members a chat can have. | 加入群组时,群成员数量已达到上限。对于已认证企业的飞书的群人数默认上限:普通群5000人,会议群3000人,话题群5000人。 |
400 | 232019 | The request has been rate limited. | 触发群限流,请控制请求的速度,详情参见频控策略。 |
400 | 232025 | Bot ability is not activated. | 应用需要开启机器人能力。 |
400 | 232027 | There are no valid members in the ID list specified in your request. | 加入群聊的成员为空或不存在有效的成员。 |
400 | 232075 | The public group needs to apply to join, and users or bots are not allowed to actively join the group. | 公开群开启进群验证,不能通过API入群。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://open.feishu.cn/open-apis/im/v1/chats/oc_a0553eda9014c201e6969b478895c230/members/me_join' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"data": {},
"msg": "ok"
}
请求参数
Path 参数
chat_id
必需
示例值:
oc_a0553eda9014c201e6969b478895c230
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
返回响应
修改于 2023-01-13 02:21:14