POST /programs
Create programs
Request Headers
Name | Type | Required or Optional | Description |
---|---|---|---|
token | string | required | Access Credentials Token |
Request Body
Name | Type | Required or Optional | Description |
---|---|---|---|
name | string | optional | program name |
parent | string | optioanl | parent programs, 0 means no parent program |
PM | string | optioanl | project manager |
budget | int | optioanl | budget |
budgetUnit | string | optioanl | currency of budget (CNY/USD) |
desc | string | optioanl | description of programs |
begin | date | optioanl | estimated begin date |
end | date | optioanl | estimated end date |
acl | string | optioanl | access control (open or private) |
whitelist | array | optioanl | whitelist |
Request Response
Name | Type | Required or Optional | Description |
---|---|---|---|
id | int | required | |
name | string | required | project name |
budget | int | required | budget |
budgetUnit | string | required | currency of budget (CNY/USD) |
parent | int | required | parent program |
begin | date | required | estimated begin date |
end | date | required | estimated end date |
realBegan | date | required | actual begin date |
realEnd | date | required | actual end date |
desc | string | required | description of program |
acl | string | required | access control (open or private) |
whitelist | array | required | whitelist |
openedBy | required | create by | |
openedDate | datetime | required | create time |
PM | optional | responsible person |
Response Example
{
"id": 43,
"project": 0,
"model": "",
"type": "program",
"lifetime": "",
"budget": "0",
"budgetUnit": "CNY",
"attribute": "",
"percent": 0,
"milestone": "0",
"output": "",
"auth": "",
"parent": 0,
"path": ",43,",
"grade": 1,
"name": "program21",
"code": "",
"begin": "2021-09-11",
"end": "2021-12-31",
"realBegan": null,
"realEnd": null,
"days": 0,
"status": "wait",
"subStatus": "",
"pri": "1",
"desc": "",
"version": 0,
"parentVersion": 0,
"planDuration": 0,
"realDuration": 0,
"openedBy": {
"id": 1,
"account": "admin",
"avatar": "",
"realname": "admin"
},
"openedDate": "2021-12-03T02:07:36Z",
"openedVersion": "",
"lastEditedBy": "",
"lastEditedDate": null,
"closedBy": null,
"closedDate": null,
"canceledBy": null,
"canceledDate": null,
"PO": null,
"PM": null,
"QD": null,
"RD": null,
"team": "",
"acl": "private",
"whitelist": [
{
"id": 1,
"account": "admin",
"avatar": "",
"realname": "admin"
}
],
"order": 215,
"deleted": false
}