Update a Project CBS Code by CBS
put
/api/restapi/cbs/project
Send a request to this endpoint to update a project CBS code. An application object with an ID value that matches the ID value provided in the JSON object in the request body will be updated to reflect the JSON contents.
Update Key : 'cbsSheetCodeId'
Update Key : 'cbsSheetCodeId'
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : ApiEntityCBSSheetCodeInput
Type:
object
Title:
ApiEntityCBSSheetCodeInput
This entity represents a CBSSheetCode object, a unique CBSSheetCode object can be identified by the following combinations of the fields.
Show Source
- cbsSheetCodeId
- cbsCode,projectId
- cbsCode,projectCode,workspaceCode
-
cbsCode(required): string
Minimum Length:
1
Maximum Length:60
The cost breakdown structure code is a code that is concatenated with its parent and child according to the segment definition. -
cbsSheetCodeId: integer
(int64)
The ID of the cost breakdown structure code. The CBS code is a code that is concatenated with its parent and child according to the segment definition. This value should not be provided in create operation request data, however, it is required for update requests.
-
costSheetId: integer
(int64)
The unique identifier of a cost sheet.
-
costSheetRow:
costSheetRow
A CBS sheet row object.
-
costType: string
Allowed Values:
[ "CAPITAL", "EXPENSE", "NONE" ]
The category of the cost breakdown structure code.
Expense: Represents an expense.
Capital: Represents capital.
None: Type is not divided into expense or capital. None is selected by default if no other choice is made. -
description: string
Minimum Length:
0
Maximum Length:255
The name of the CBS code. -
isActive: boolean
The active field indicates whether the CBS code is active for use.
-
parentCBSCodes: array
parentCBSCodes
List of parent cbs codes in a hierarchy. This field is not populated as part of the API response since it is a write-only field, used only for the create or update APIs.
-
parentId: integer
(int64)
The system-generated identifier of a parent cost item in a cost sheet.
-
projectCode: string
Minimum Length:
1
Maximum Length:60
The user-specified identifier of a project. -
projectId(required): integer
(int64)
The unique identifier for the project.
-
sourceId: string
Maximum Length:
255
The unique identifier of cost sheet item data in an external source. -
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace. -
workspaceId: integer
(int64)
The system-generated identifier of a workspace.
Nested Schema : costSheetRow
A CBS sheet row object.
Match All
A CBS sheet row object.
Show Source
-
object
ApiEntityCBSSheetRowInput
Title:
ApiEntityCBSSheetRowInput
Nested Schema : parentCBSCodes
Type:
array
List of parent cbs codes in a hierarchy. This field is not populated as part of the API response since it is a write-only field, used only for the create or update APIs.
Show Source
Nested Schema : ApiEntityCBSSheetRowInput
Type:
object
Title:
Show Source
ApiEntityCBSSheetRowInput
-
configuredFields: array
configuredFields
An object containing configured fields in the form of key-value pairs.
Nested Schema : configuredFields
Type:
array
An object containing configured fields in the form of key-value pairs.
Show Source
-
Array of:
object ApiEntityCBSSheetRowConfiguredFieldValueInput
Title:
ApiEntityCBSSheetRowConfiguredFieldValueInput
This entity represents a CBSSheetRowConfiguredFieldValue object, a unique CBSSheetRowConfiguredFieldValue object can be identified by the following combinations of the fields.- costSheetRowConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
Nested Schema : ApiEntityCBSSheetRowConfiguredFieldValueInput
Type:
object
Title:
ApiEntityCBSSheetRowConfiguredFieldValueInput
This entity represents a CBSSheetRowConfiguredFieldValue object, a unique CBSSheetRowConfiguredFieldValue object can be identified by the following combinations of the fields.
Show Source
- costSheetRowConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
-
action: string
Allowed Values:
[ "DELETE" ]
Provide value for this field during object update to delete the assigned configured field value. -
columnDefinitionId: integer
(int64)
Unique identifier of the column. This value should not be provided in create operation request data, however, it is required for update requests.
-
columnLabel: string
Minimum Length:
1
Maximum Length:100
The user-specified UDF column label. -
columnName: string
Minimum Length:
1
Maximum Length:100
The user-specified UDF column name. -
costSheetRowConfiguredFieldValueId: integer
(int64)
The unique identifier for the Project Cost Sheet Configured Field.
-
costSheetRowId: integer
(int64)
The system-generated identifier of a CBS Code.
-
dateValue: string
(date-time)
This holds values for Date type configured fields.
-
numberValue: number
This holds values for Number, Integer and Cost type configured fields. Input for the cost configured field should be provided in the currency of record. For example project level currency in case of Activity, base currency for Company, workspace currency for Funds and record level currency for Project Actuals etc. configured fields.
-
textValue: string
Maximum Length:
4000
This holds values for Boolean, List and Text type configured fields.
Examples
Back to Top
Response
204 Response
Successful operation with no content.
400 Response
Invalid input for the CBS service. Verify the request contains valid data, then resubmit the request.