Appearance
更新评论
请求体说明
类别 | 值 |
---|---|
请求地址 | {base_url}/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/comment/:comment_id |
请求方式 | PUT |
请求 Header
字段 | 值 | 必须填写 |
---|---|---|
Content-Type | application/json | 必须 |
X-PLUGIN-TOKEN | 用户在开放平台中获取的 Token,参考插件身份凭证章节。 | 必须 |
X-USER-KEY | 当选择使用插件身份凭证的时候,需要额外必选指定接口调用的用户user_key,user_key可双击用户头像获取 | 可选 |
X-IDEM-UUID | 写类型接口的幂等串,可以不设置,设置后会进行同一个X-PLUGIN-TOKEN下同一接口的幂等判断 | 可选 |
参考请求格式如下:
curl --location -g --request GET '{base_url}/open_api/:project_key/work_item/:work_item_type_key/:work_item_id/comment/:comment_id' \
--header 'X-PLUGIN-TOKEN: {{token}}' \
--header 'X-USER-KEY: {{user_key}}' \
--data-raw ''
路径参数
参数名 | 是否必填 | 值类型 | 说明 |
---|---|---|---|
project_key | 是 | string | 空间id [project_key],或者空间域名 [simple_name] |
work_item_type_key | 是 | string | 工作项类型,可以从获取工作项类型接口获取 |
work_item_id | 是 | int64 | 工作项ID |
comment_id | 是 | int64 | 评论id |
请求体参数
参数名 | 是否必填 | 值类型 | 说明 |
---|---|---|---|
content | 是 | string | 评论内容 |
请求体格式
{
"content": "@zjq 创建test"
}
返回格式
{
"err": {},
"err_msg": "",
"err_code": 0
}