PUT /programs/:id
Edit 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 Example
{
"name": "program",
"PM": "admin"
}
Request Response
| Name | Type | Required or Optional | Description |
|---|---|---|---|
| id | int | required | user id |
| type | string | required | type (inside, internal users|outside, external users) |
| dept | int | optional | department |
| account | string | required | user name |
| gender | string | required | gender (f, female,|m, male) |
| string | string | optional | real name |
Response Example
{
"id": 12,
"project": 0,
"model": "",
"type": "program",
"lifetime": "",
"budget": "",
"budgetUnit": "CNY",
"attribute": "",
"percent": 0,
"milestone": "0",
"output": "",
"auth": "extend",
"parent": 0,
"path": ",12,",
"grade": 1,
"name": "program",
"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 project",
"acl": "private",
"whitelist": ",",
"order": 60,
"deleted": "0"
}