创建评论
POST
https://open.feishu.cn/open-apis/approval/v4/instances/{instance_id}/comments
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 1390001 | param is invalid | 参数错误 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/approval/v4/instances/6A123516-FB88-470D-A428-9AF58B71B3C0/comments?user_id_type=open_id' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "{\"text\":\"来自小程序的评论111我带附件中有extra \",\"files\":[{\"url\":\"xxx\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\",\"extra\":\"\"}]}",
"at_info_list": [
{
"user_id": "579fd9c4",
"name": "张某",
"offset": "1"
}
],
"parent_comment_id": "7081516627711524883",
"comment_id": "7081516627711524883",
"disable_bot": false,
"extra": "{\"a\":\"a\"}"
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"comment_id": "7081516627711606803"
}
}
请求参数
Path 参数
instance_id
string
必需
示例值:
6A123516-FB88-470D-A428-9AF58B71B3C0
Query 参数
user_id_type
string
可选
示例值:
open_id
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-02-02 03:11:17