创建项目
POST
https://open.teambition.com/api/project/create
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.teambition.com/api/project/create' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization' \
--header 'Content-Type: application/json' \
--data-raw '{
"operatorId": "5a28e2036176bbde...",
"name": "项目1"
}'
响应示例响应示例
{
"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"
}
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
Body 参数application/json
返回响应
修改于 2021-12-28 11:13:42