PUT /ws/rest/service/v1/cost/cbs/{project_number}
Purpose:
Update CBS Codes for the specified Project.
Input:
All parameters should be URL encoded.
Path Parameter
- project_number: Specify the Project number. Project number is mandatory.
- input query parameter -
options=
{
"key": "bitemid"
}
- Based on the key value provided in 'options' parameter, required field will be chosen. If key value is not given then 'code' will be considered as required field.
- "key" <<code>,<bitemid>>
Notes:
- The complete path from parent to child CBS code (separated by delimiter '~~') should be given in code field of input request if code is chosen as value for key.
- The "orderid" and "parentid" cannot be updated. All other cost attributes can be updated.
- The value in the CBS code field can be updated when the value of key in options parameter is"'bitemid."
- Partial Update is not allowed.
Update CBS code input JSON
{
"data": [
{
"bitemid": "26",
"code": "CostX"
"description": "Updating Cost Code using REST webservice",
"status": "InActive"
}
]
}
Output:
JSON object containing 'status', 'data', 'message'
Update CBS Code output JSON
{
"data":[
{
"bitemid" : 26,
"code": "CostX",
"description": "Updating Cost Code using REST webservice",
"item": " Cost1 Item",
"uResProgressAmount": 10,
"status": "inactive",
"cost_type": "Capital",
"parentid": "1",
"orderid": "0",
"budgetid": "6",
}
],
"message":[
"success"
],
"status":200
}