# 说明

更新发布计划,返回更新发布计划的数据 旧版发布计划更新接口 (opens new window)

# SDK 方法名

nodeJs:

SDK使用方式 (opens new window)

插件中使用SDK

方法名::

updateNewRelease
1

# url

https://api.tapd.cn/new_releases

# 支持格式

JSON/XML(默认JSON格式)

# HTTP请求方式

POST

# 请求数限制

一次插入一条数据

# 请求参数

字段名 必选 类型及范围 说明
workspace_id integer 项目ID
id integer 发布计划ID
name string 标题
description string 详细描述
startdate date 开始时间
enddate date 结束时间
status string 状态('open’或'done')

# 调用示例及返回结果

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

curl -u 'api_user:api_password' -d 'workspace_id=10104801&id=1010104801100003081&description=内容被更新' 'https://api.tapd.cn/new_releases'

# 返回结果

{
    "status": 1,
    "data": {
        "Release": {
            "id": "1010104801100003081",
            "workspace_id": "10104801",
            "name": "test2",
            "description": "内容被更新",
            "startdate": "2020-10-20",
            "enddate": "2020-11-20",
            "creator": "dev",
            "created": "2020-10-27 11:09:14",
            "modified": "2020-10-27 11:24:48",
            "status": "open"
        }
    },
    "info": "success"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

# 版本字段说明

# 版本字段重要字段说明

字段 说明
id ID
workspace_id 项目ID
name 标题
description 详细描述
creator 创建人
startdate 开始时间
enddate 结束时间
created 创建时间
modified 最后修改时间
modified 状态
上次更新: 2024-09-04 09:21:23