| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 400 | 232001 | Your request contains an invalid request parameter. | 参数错误,参考本文档检查输入参数。 |
| 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 | 232010 | Operator and chat can NOT be in different tenants. | 操作者和被操作的群组应该在同一租户下。 |
| 400 | 232011 | Operator can NOT be out of the chat. | 操作者需要在群组中。 |
| 400 | 232015 | Your request specifies a member_id_type which is NOT supported. | 无效的 user_id_type/member_id_type。 |
| 400 | 232017 | No Permission: If the operator is NOT owner or creator with the scope, the operator can NOT complete the request. | 操作者不是群主,或者有权限的群创建者。 |
| 400 | 232019 | The request has been rate limited. | 触发群限流,请控制请求的速度,详情参见频控策略。 |
| 400 | 232025 | Bot ability is not activated. | 应用需要开启机器人能力。 |
| 400 | 232033 | The operator or invited bots does NOT have the authority to manage external chats without the scope. | 没有权限操作外部群。 |
| 400 | 232034 | The app is unavailable or inactivated by the tenant. | 应用在本租户下未安装或未启用。 |
| 400 | 232060 | This chat is banned. | 群聊被禁言,请咨询技术支持。 |
curl --location --request PUT 'https://open.feishu.cn/open-apis/im/v1/chats/oc_a0553eda9014c201e6969b478895c230/moderation?user_id_type' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"moderation_setting": "moderator_list",
"moderator_added_list": [
"4d7a3c6g"
],
"moderator_removed_list": [
"4d7a3ih6"
]
}'{
"code": 0,
"msg": "success",
"data": {}
}