发送工单消息
POST
https://open.feishu.cn/open-apis/helpdesk/v1/tickets/{ticket_id}/messages
错误码
HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 154000 | Bad request, please check your request body | 请求不合法,请检查参数 |
401 | 154001 | Unauthorized, please check you have the correct access | 检查Authorization 和 X-Lark-Helpdesk-Authorization 是否正确,应用和服务台属于同一租户 |
403 | 154003 | Please check you have the correct access | 检查是否申请正确权限 |
500 | 155000 | Internal error | 内部错误,请联系我们 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.feishu.cn/open-apis/helpdesk/v1/tickets//messages' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"msg_type": "post",
"content": {
"post": {
"zh_cn": {
"title": "this is title",
"content": [
[
{
"tag": "text",
"un_escape": true,
"text": "第一行 :"
},
{
"tag": "a",
"text": "超链接",
"href": "http://www.feishu.cn"
}
],
[
{
"tag": "text",
"text": "第二行 :"
},
{
"tag": "text",
"text": "文本测试"
}
]
]
}
}
}
}'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"message_id": "om_8baa3656c7b41900d29bf9104bf5310b"
}
}
请求参数
Path 参数
ticket_id
string
必需
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
Body 参数application/json
返回响应
修改于 2023-02-02 06:45:13