PUT /projects/:id
Modify a project
Request header
Name |
Type |
Mandatory fields |
Description |
Token |
String |
Yes |
Authentication credentials Token |
Request body
Name |
Type |
Mandatory fields |
Description |
name |
string |
No |
project name |
code |
string |
No |
project code |
parent |
int |
No |
affiliated program |
PM |
int |
No |
project manager |
budget |
int |
No |
project budget |
budgetUnit |
string |
No |
budget currency(CNY | USD) |
days |
int |
No |
available working day |
desc |
string |
No |
project description |
acl |
string |
No |
access control(open | private) |
whitelist |
array |
No |
whitelist |
auth |
string |
No |
access control(extend | reset) |
Request example
{
"name": "edit a project",
"PM": "admin"
}
Response
Name |
Type |
Mandatory fields |
Description |
id |
int |
Yes |
project ID |
name |
string |
No |
project name |
parent |
int |
No |
affiliated program |
code |
string |
No |
project code |
PM |
user |
No |
project manager |
budget |
int |
No |
project budget |
budgetUnit |
string |
No |
budget currency(CNY | USD) |
days |
int |
No |
available working day |
desc |
string |
No |
project description |
acl |
string |
No |
access control(open | private) |
whitelist |
array |
No |
whitelist |
auth |
string |
No |
permission control(extend | reset) |
Response example
{
"id": 12,
"project": 0,
"model": "scrum",
"type": "project",
"lifetime": "",
"budget": "",
"budgetUnit": "CNY",
"attribute": "",
"percent": 0,
"milestone": "0",
"output": "",
"auth": "extend",
"parent": 0,
"path": ",12,",
"grade": 1,
"name": "edit a project",
"code": "tt",
"begin": "2021-11-26",
"end": "2021-12-26",
"realBegan": "0000-00-00",
"realEnd": "0000-00-00",
"days": 21,
"status": "wait",
"subStatus": "",
"pri": "1",
"desc": "",
"version": 0,
"parentVersion": 0,
"planDuration": 0,
"realDuration": 0,
"openedBy": "admin",
"openedDate": "2021-11-26T02:27:15Z",
"openedVersion": "",
"lastEditedBy": "admin",
"lastEditedDate": "2021-11-26T02:33:18Z",
"closedBy": "",
"closedDate": null,
"canceledBy": "",
"canceledDate": null,
"PO": "",
"PM": "admin",
"QD": "",
"RD": "",
"team": "edit a project",
"acl": "private",
"whitelist": ",",
"order": 60,
"deleted": "0"
}