# 说明
返回自定义对象某条记录下的评论(流转意见)
# url
https://apiv2.tapd.tencent.com/tobject_comments
# 支持格式
JSON/XML(默认JSON格式)
# HTTP请求方式
GET
# 请求数限制
默认返回某条记录下的所有评论
# 请求参数
字段名 | 必选 | 类型及范围 | 说明 | 特殊规则 |
---|---|---|---|---|
workspace_id | 是 | integer | 项目ID | |
system_name | 是 | integer | 自定义对象的系统名字(英文) | |
instance_id | 是 | integer | 实例ID |
# 调用示例及返回结果
# 获取项目下自定义对象评论
# curl 使用 Basic Auth 鉴权调用示例
curl -u 'api_user:api_password' 'https://apiv2.tapd.tencent.com/tobject_comments?workspace_id=10104801&system_name=flow&instance_id=10054'
# curl 使用 OAuth Access Token 鉴权调用示例
curl -H 'Authorization: Bearer ACCESS_TOKEN' 'https://apiv2.tapd.tencent.com/tobject_comments?workspace_id=10104801&system_name=flow&instance_id=10054'
# 返回结果
{
"status": 1,
"data": [
{
"WorkflowComment": {
"id": "7177",
"workspace_id": "10104801",
"tobject_instance_id": "10054",
"content": "<div>afafdafdfad</div>",
"creator": "anyechen",
"modifier": "anyechen",
"created": "2023-03-10 15:42:13",
"modified": "2023-03-10 15:42:13",
"title": "[1] 到 [2] 添加"
}
},
{
"WorkflowComment": {
"id": "7176",
"workspace_id": "10104801",
"tobject_instance_id": "10054",
"content": "<div>dddddd</div>",
"creator": "anyechen",
"modifier": "anyechen",
"created": "2023-03-10 10:32:36",
"modified": "2023-03-10 10:32:36",
"title": "[1] 到 [1] 添加"
}
}
],
"info": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 自定义对象评论字段说明
# 自定义对象评论重要字段说明
字段 | 说明 |
---|---|
id | id |
workspace_id | 项目ID |
tobject_instance_id | 记录ID |
content | 评论内容 |
title | 标题 |
modified | 变更时间 |
modifier | 变更人 |
creator | 创建人 |
created | 创建时间 |