获取群公告信息
GET
/open-apis/im/v1/chats/{chat_id}/announcement
自建应用商店应用
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 232001 | Your request contains an invalid request parameter. | 参数错误,参考本文档检查输入参数。 |
400 | 232003 | Chat announcement can NOT be found in chat information. | 群公告信息异常。 |
400 | 232010 | Operator and chat can NOT be in different tenants. | 操作者和被操作的群组应该在同一租户下。 |
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 | 232066 | The operator does not have the doc permission. | 操作者没有文档的阅读权限,请添加文档权限后重试。 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/im/v1/chats/oc_5ad11d72b830411d72b836c20/announcement' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"content": "xxx",
"revision": "12",
"create_time": "1609296809",
"update_time": "1609296809",
"owner_id_type": "open_id",
"owner_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs",
"modifier_id_type": "open_id",
"modifier_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs"
}
}
请求参数
Path 参数
chat_id
必需
示例值:
oc_5ad11d72b830411d72b836c20
Query 参数
user_id_type
string
可选
示例值:
open_id
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
返回响应
修改于 2023-01-13 02:29:19