更新工单

提供修改工单信息的功能.

地址

PUT /v2/accounts/tickets/:ticket_id

鉴权

Authorization: Bearer base64(api_key:api_secret)

请求头

curl --request GET \ --url https://livedesk.engagelab.com/v2/accounts/tickets/:ticket_id \ --H "Content-Type: application/json" \ --H "Authorization: Bearer base64(api_key:api_secret)"
              
              curl --request GET \
  --url https://livedesk.engagelab.com/v2/accounts/tickets/:ticket_id \
  --H "Content-Type: application/json" \
  --H "Authorization: Bearer base64(api_key:api_secret)" 

            
This code block in the floating window

路径参数

字段 类型 必填 描述
ticket_id String 工单ID。

请求示例

{ "title": "打印机卡纸,无法打印(已更新)", "description": "客户反映A4纸卡在出纸口,急需处理。\n已派技术员前往。", "attachments": [ { "file_url": "https://example.com/files/error-photo.jpg" } ], "priority": "normal", "ticket_type": "incident", "custom_fields": { "department": "IT支持", "device_sn": "PRN-2024-001", "location": "北京总部-3楼打印室", "resolution_note": "更换了进纸器" }, "tags": ["printer", "hardware", "resolved"] }
              
              {
  "title": "打印机卡纸,无法打印(已更新)",
  "description": "客户反映A4纸卡在出纸口,急需处理。\n已派技术员前往。",
  "attachments": [
    {
      "file_url": "https://example.com/files/error-photo.jpg"
    }
  ],
  "priority": "normal",
  "ticket_type": "incident",
  "custom_fields": {
    "department": "IT支持",
    "device_sn": "PRN-2024-001",
    "location": "北京总部-3楼打印室",
    "resolution_note": "更换了进纸器"
  },
  "tags": ["printer", "hardware", "resolved"]
}

            
This code block in the floating window

请求参数

字段 类型 必填 描述
title String 工单标题
description String 工单详细描述(支持 Markdown
attachments Array 工单级附件列表
priority String 优先级:low/medium/high/urgent。
ticket_type String 工单类型:incident/question/problem/task
custom_fields object 自定义字段(如设备序列号、订单号等)。
conversation_list Array 工单内所有消息历史。
status_changes Array 工单状态变更记录。
tags Array 工单标签。

attachments

字段 类型 必填 描述
file_url String 文件地址。

custom_fields

字段 类型 必填 描述
device_sn String 关注者ID。
location String 关注者名称。
department String 部门。
resolution_note String 解决记录。

响应示例

成功响应

{ "code": 0, "message": "Success", "data": { "ticket_id": "tk_20251104_789abc", "updated_at": "2025-11-04T10:30:00+08:00" } }
              
              {
  "code": 0,
  "message": "Success",
  "data": {
    "ticket_id": "tk_20251104_789abc",
    "updated_at": "2025-11-04T10:30:00+08:00"
  }
}

            
This code block in the floating window

响应参数

字段 类型 必填 描述
ticket_id String 工单ID。
updated_at String 更新时间。
icon
Contact Sales