创建迭代
POST
https://open.teambition.com/api/sprint/create该接口用于创建迭代。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
operatorId
string
必需
操作人的用户 ID,该用户需要具备创建迭代的权限。
projectId
string
项目 ID
name
string
迭代名
description
string
迭代描述
executorId
string
迭代指派人
startDate
string
迭代开始时间
dueDate
string
迭代结束时间
示例
{
"operatorId": "5e142164aef01b07...",
"projectId": "5e142164aef01b07...",
"name": "迭代名字",
"description": "迭代描述",
"executorId": "5e142164aef01b07...",
"startDate": "2019-12-01T10:30:00Z",
"dueDate": "2019-12-02T10:30:00Z"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
result
object (result)
必需
creatorId
string
创建人 ID
sprintId
string
迭代 ID
projectId
string
所属项目 ID
executorId
string
迭代执行人 ID
created
string
创建时间
dueDate
string
迭代结束时间
name
string
迭代名
description
string
迭代名
startDate
string
迭代开始时间
status
string
必需
迭代状态(future-未开始 active-进行中 complete-完成)
updated
string
更新时间
示例
{
"code": 200,
"errorMessage": "",
"result": {
"creatorId": "5e141eaf7fd0daf8...",
"sprintId": "5e141eaf7fd0daf8...",
"projectId": "5e141eaf7fd0daf8...",
"executorId": "5e141eaf7fd0daf8...",
"created": "2019-12-01T10:30:00Z",
"dueDate": "2019-12-02T10:30:00Z",
"name": "迭代名",
"description": "迭代描述",
"startDate": "2019-12-01T10:30:00Z",
"status": "future",
"updated": "2019-12-01T10:30:00Z"
}
}
最后修改时间: 3 年前