POST /projects
Create a project
Request header
Name |
Type |
Mandatory fields |
Description |
Token |
String |
Yes |
Authentication credentials Token |
Request body
Name |
Type |
Mandatory fields |
Description |
name |
string |
Yes |
project title |
begin |
date |
Yes |
estimated start time |
end |
date |
Yes |
estimated end time |
products |
array |
Yes |
link product such as [1,2], and the value can't be null |
code |
string |
Yes |
project code |
model |
string |
No |
Project model. Srum is set by default. |
parent |
int |
No |
Affiliated program. 0 is set by default. |
Request example
{
"name": "test",
"code": "test",
"begin": "2021-01-01",
"end": "2022-01-01",
"products": [1]
}
Response
Name |
Type |
Mandatory fields |
Description |
id |
int |
Yes |
project ID |
model |
string |
Yes |
project model (scrum | waterfall) |
budget |
int |
Yes |
budget |
budgetUnit |
string |
Yes |
budget currency(CNY | USD) |
parent |
int |
Yes |
affiliated program |
name |
string |
Yes |
project name |
code |
string |
Yes |
peoject code |
begin |
date |
Yes |
estimated start time |
end |
date |
Yes |
estimated end time |
realBegan |
date |
No |
actual start time |
realEnd |
date |
No |
actual end time |
openedBy |
user |
Yes |
create by |
openedDate |
datetime |
Yes |
create time |
Response example
{
"id": 9,
"model": "scrum",
"type": "project",
"lifetime": "",
"budget": "0",
"budgetUnit": "CNY",
"attribute": "",
"percent": 0,
"milestone": "0",
"output": "",
"auth": "",
"parent": 0,
"path": ",9,",
"grade": 1,
"name": "test",
"code": "test",
"begin": "2021-01-01",
"end": "2022-01-01",
"realBegan": "0000-00-00",
"realEnd": "0000-00-00",
"days": 0,
"status": "wait",
"subStatus": "",
"pri": "1",
"desc": "",
"version": 0,
"parentVersion": 0,
"planDuration": 0,
"realDuration": 0,
"openedBy": "admin",
"openedDate": "2021-11-25T09:12:30Z",
"openedVersion": "",
"lastEditedBy": "admin",
"lastEditedDate": "2021-11-25T09:12:30Z",
"closedBy": "",
"closedDate": null,
"canceledBy": "",
"canceledDate": null,
"PO": "",
"PM": "",
"QD": "",
"RD": "",
"team": "test",
"acl": "private",
"whitelist": ",",
"order": 45,
"deleted": "0"
}