PUT /product/:id
Edit products
Request Headers
Name | Type | Required or Optional | Description |
---|---|---|---|
token | string | required | Access Credentials Token |
Request Body
Name | Type | Required or Optional | Description |
---|---|---|---|
program | int | required | belong to which program |
name | string | required | product name |
code | string | required | product code |
line | int | required | belong to which product line |
PO | optional | product owner | |
QD | optional | test manager | |
RD | optional | release manager | |
type | string | optional | product type (normal|branch|platform) |
desc | string | optional | description of product |
acl | string | optional | access control (open or private) |
whitelist | array | optional | whitelist |
Request Example
{
"name": "companyWebsiteDevelopment1"
}
Request Response
Name | Type | Required or Optional | Description |
---|---|---|---|
id | int | required | product id |
program | int | required | belong to which program |
name | string | required | product name |
code | string | required | product code |
line | int | required | belong to which product line |
PO | optional | product owner | |
QD | optioanl | test manager | |
RD | optional | release manager | |
type | string | required | product type (normal|branch|platform) |
desc | object | optional | description of product |
acl | string | required | access control (open or private) |
whitelist | array | optional | whitelist |
createdBy | required | created by | |
createdDate | datetime | required | create time |
Response Example
{
"id": 1,
"program": 6,
"name": "companyWebsiteDevelopment1",
"code": "companyWebsite",
"bind": "0",
"line": 0,
"type": "normal",
"status": "normal",
"subStatus": "",
"desc": "create a company website to better show to the public.<br />",
"PO": {
"id": 2,
"account": "productManager",
"avatar": "",
"realname": "productManager"
},
"QD": {
"id": 10,
"account": "testManager",
"avatar": "",
"realname": "testManager"
},
"RD": {
"id": 2,
"account": "productManager",
"avatar": "",
"realname": "productManager"
},
"acl": "open",
"whitelist": [],
"reviewer": "",
"createdBy": {
"id": 2,
"account": "productManager",
"avatar": "",
"realname": "productManager"
},
"createdDate": "2012-06-05T01:57:07Z",
"createdVersion": "",
"order": 5,
"deleted": "0",
"stories": {
"active": 5,
"draft": 3,
"": 0,
"closed": 0,
"changed": 0
},
"plans": 0,
"releases": 0,
"builds": 0,
"cases": 5,
"projects": 0,
"executions": 0,
"bugs": 5,
"docs": 0,
"progress": 0,
"caseReview": false
}