| HTTP状态码 | 错误码 | 描述 | 排查建议 |
|---|---|---|---|
| 400 | 232001 | Your request contains an invalid request parameter. | 参数错误,参考本文档检查输入参数。 |
| 400 | 232011 | Operator can NOT be out of the chat. | 操作者需要在群组中。 |
| 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 | 232038 | The operator is not chat owner, no permission to complete the request. | 操作者不是群主,没有权限添加或删除管理员。 |
| 400 | 232039 | The operation of Add/Delete chat managers has succeeded. But the current managers list was not returned due to service problems. | 增加/删除群管理员处理成功,但是由于服务问题未返回目前的管理员名单。如需要得到目前的管理员名单,可以再次请求或者咨询客服。 |
| 400 | 232040 | The chat managers has reached the limit of maximum number. | 群管理员人数达到上限。 |
curl --location --request POST '/im/v1/chats/oc_a0553eda9014c201e6969b478895c230/managers/add_managers' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"manager_ids": [
"ou_9204a37300b3700d61effaa439f34295"
]
}'{
"code": 0,
"msg": "success",
"data": {
"chat_managers": [
"ou_9204a37300b3700d61effaa439f34295"
],
"chat_bot_managers": [
"cli_a10fbf7e94b8d01d"
]
}
}