Update a Workspace CBS Code
put
/api/restapi/cbs/workspace
Send a request to this endpoint to update a workpsace 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 : 'cbsTemplateCodeId'
Update Key : 'cbsTemplateCodeId'
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : ApiEntityCBSTemplateCodeInput
Type:
object
Title:
ApiEntityCBSTemplateCodeInput
This entity represents a CBSTemplateCode object, a unique CBSTemplateCode object can be identified by the following combinations of the fields.
Show Source
- cbsTemplateCodeId
- cbsCode,workspaceId
- cbsCode,workspaceCode
-
cbsCode: string
Minimum Length:
1
Maximum Length:60
The code value of the CBS code. The code may have one or more segments according the ot the segment definition. -
cbsTemplateCodeId: integer
(int64)
The unique identifier of the original CBS. This value should not be provided in create operation request data, however, it is required for update requests.
-
cbsTemplateId: integer
(int64)
The unique identifier for the CBS template.
-
copiedFromItemId: integer
(int64)
The unique identifier for the CBS template that the CBS was copied from.
-
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 unique identifier of the parent CBS.
-
pushDownStatus: boolean
The push down status of a cbs template code. May be manual or automatic.
-
templateRow:
templateRow
A CBS template row object.
-
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace. -
workspaceId(required): integer
(int64)
The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
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 : templateRow
A CBS template row object.
Match All
A CBS template row object.
Show Source
-
object
ApiEntityCBSTemplateRowInput
Title:
ApiEntityCBSTemplateRowInput
Nested Schema : ApiEntityCBSTemplateRowInput
Type:
object
Title:
Show Source
ApiEntityCBSTemplateRowInput
-
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 ApiEntityCBSTemplateRowConfiguredFieldValueInput
Title:
ApiEntityCBSTemplateRowConfiguredFieldValueInput
This entity represents a CBSTemplateRowConfiguredFieldValue object, a unique CBSTemplateRowConfiguredFieldValue object can be identified by the following combinations of the fields.- workspaceCostSheetConfiguredValueId
- columnDefinitionId
- columnName
- columnLabel
Nested Schema : ApiEntityCBSTemplateRowConfiguredFieldValueInput
Type:
object
Title:
ApiEntityCBSTemplateRowConfiguredFieldValueInput
This entity represents a CBSTemplateRowConfiguredFieldValue object, a unique CBSTemplateRowConfiguredFieldValue object can be identified by the following combinations of the fields.
Show Source
- workspaceCostSheetConfiguredValueId
- 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. -
costSheetRowId: integer
(int64)
The system-generated identifier for an CBS Code assigned to the line item.
-
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. -
workspaceCostSheetConfiguredFieldValueId: integer
(int64)
The unique identifier for the Workspace Cost Sheet Configured Field.
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.