# 说明

创建自定义对象评论(流转意见),返回评论(流转意见)的数据。

# url

https://apiv2.tapd.tencent.com/tobject_comments

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

POST

# 请求数限制

每次只允许创建一条数据。

# 请求参数

字段名 必选 类型及范围 说明 特殊规则
workspace_id integer 项目ID
system_name integer 自定义对象的系统名字(英文)
instance_id integer 实例ID
comment string 评论(流转意见)内容
creator string 创建人

# 调用示例及返回结果

# 创建自定义对象的评论(流转意见)

# curl 使用 Basic Auth 鉴权调用示例

curl -u 'api_user:api_password' -d 'workspace_id=10104801&system_name=flow&instance_id=10054&comment=from%20api%2023333' 'https://apiv2.tapd.tencent.com/tobject_comments'

# curl 使用 OAuth Access Token 鉴权调用示例

curl -H 'Authorization: Bearer ACCESS_TOKEN' -d 'workspace_id=10104801&system_name=flow&instance_id=10054&comment=from%20api%2023333' 'https://apiv2.tapd.tencent.com/tobject_comments'

# 返回结果

{
    "status": 1,
    "data": {
        "WorkflowComment": {
            "id": "7187",
            "workspace_id": "10104801",
            "tobject_instance_id": "10054",
            "content": "from api 23333",
            "creator": "tapd",
            "modifier": "tapd",
            "created": "2023-03-13 10:19:10",
            "modified": "2023-03-13 10:19:10",
            "title": "[3] 到 [3] 添加"
        }
    },
    "info": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# 自定义对象评论字段说明

# 自定义对象评论重要字段说明

字段 说明
id id
workspace_id 项目ID
tobject_instance_id 记录ID
content 评论内容
title 标题
modified 变更时间
modifier 变更人
creator 创建人
created 创建时间
上次更新: 2023-03-13 10:50:18