# 说明

新建评论,返回新建评论的数据

# url

https://api.tapd.cn/comments

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

POST

# 请求数限制

一次插入一条数据

# 请求参数

字段名 必选 类型及范围 说明
description string 内容(需要用p标签包起来)
author string 评论人
entry_id integer 评论所属工作项ID
workspace_id integer 空间ID
root_id integer 根评论ID
reply_id integer 评论回复的ID

# curl 调用示例

curl -u 'api_user:api_password' -d 'workspace_id=69993260&entry_id=1069993260856110919&description=<p>test</p>&author=orangecyang' 'https://api.tapd.cn/comments'

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

curl -H 'Authorization: Bearer ACCESS_TOKEN' -d 'workspace_id=69993260&entry_id=1069993260856110919&description=<p>test</p>&author=orangecyang' 'https://api.tapd.cn/comments'

# 返回结果

{
    "status": 1,
    "data": {
        "Comment": {
            "id": "1069993260059089555",
            "title": "在状态 [已完成] 添加",
            "description": "<p>test</p>",
            "author": "orangecyang",
            "entry_type": "mini_items",
            "entry_id": "1069993260856110919",
            "reply_id": "0",
            "root_id": "0",
            "created": "2023-07-18 22:16:20",
            "modified": "2023-07-18 22:16:20",
            "workspace_id": "69993260"
        }
    },
    "info": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

# 评论字段说明

# 评论重要字段说明

字段 说明
id 评论ID
title 标题
description 内容
author 评论人
entry_id 评论所属工作项ID
created 创建时间
modified 最后更改时间
workspace_id 空间ID
root_id 根评论ID
reply_id 评论回复的ID
上次更新: 2023-07-19 17:38:15