创建项目
POST
https://open.teambition.com/api/project/create该接口用于创建项目。
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
operatorId
string
操作人的用户 ID
name
string
项目名称
示例
{
"operatorId": "5a28e2036176bbde...",
"name": "项目1"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
返回码,200 表示成功
errorMessage
string
必需
调用失败时的错误信息
result
object (result)
项目信息
projectId
string
项目 ID
name
string
项目名称
pinyin
string
项目名称的拼音
py
string
项目名称的拼音简写
description
string
项目简介
cover
string
项目封面的 URL
type
string
必需
项目类型,取值为: normal:普通项目 workflow:工作流项目 agile:敏捷项目
visibility
string
必需
项目公开性,取值为: private:私有项目(仅项目成员可查看和编辑) visibleInOrg:企业项目(企业内所有成员可见,仅项目成员可编辑)
isArchived
integer
必需
是否归档:0 未归档,1 已归档
creatorId
string
创建人的用户 ID
created
string
项目创建时间
modifierId
string
必需
最近一次执行更新操作的用户 ID
updated
string
最近一次更新时间
示例
{
"code": 200,
"errorMessage": "string",
"result": {
"projectId": "5e0d98527d161c00...",
"name": "项目1",
"pinyin": "Xiang Mu 1",
"py": "XM1",
"description": "这是第一个项目",
"cover": "http://test.com/photo/projectCover.jp",
"type": "normal",
"visibility": "private",
"isArchived": 0,
"creatorId": "5a28e2036176bbde...",
"created": "2020-01-03T10:00:00Z",
"modifierId": "5a28e2036176bbde...",
"updated": "2020-01-03T12:30:00Z"
}
}
最后修改时间: 3 年前