Batch Update Project Budget Items
put
/api/restapi/budgetItem/batch
Send a request to this endpoint to update one or more project budget items. For each JSON object provided in the request body, an application object with a matching ID value will be updated to reflect the JSON contents.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : List<ApiEntityBudgetItemInput>
Type:
array
Title:
Show Source
List<ApiEntityBudgetItemInput>
-
Array of:
object ApiEntityBudgetItemInput
Title:
ApiEntityBudgetItemInput
This entity represents a BudgetItem object, a unique BudgetItem object can be identified by the following combinations of the fields.- budgetItemId
- budgetItemCode,projectId
- budgetItemCode,projectCode,workspaceCode
Nested Schema : ApiEntityBudgetItemInput
Type:
object
Title:
ApiEntityBudgetItemInput
This entity represents a BudgetItem object, a unique BudgetItem object can be identified by the following combinations of the fields.
Show Source
- budgetItemId
- budgetItemCode,projectId
- budgetItemCode,projectCode,workspaceCode
-
abbreviation: string
Minimum Length:
1
Maximum Length:10
The abbreviated name of a cost category. -
budgetItemCode: string
Minimum Length:
0
Maximum Length:60
The unique identifier of the project budget item. -
budgetItemCost:
budgetItemCost
Contains Budget Item cost related fields.
-
budgetItemId: integer
(int64)
The system-generated identifier of a budget item.
-
cbsCodes: array
cbsCodes
List of cbs codes in hierarchy for the CBS which needs to be associated with the item. 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.
-
cbsSheetCodeId(required): integer
(int64)
The unique identifier of the CBS Code.
-
configuredFields: array
configuredFields
The list of configured fields for a budget item.
-
costCategoryId: integer
(int64)
The type of cost associated with the budget item.
-
costCategoryName: string
Minimum Length:
1
Maximum Length:255
The cost category assigned to this budget item. -
itemName(required): string
Minimum Length:
0
Maximum Length:255
The name of the budget item. -
productionRate: number
(double)
Minimum Value:
0.000010
The number of hours per unit of measure needed to complete the budget item. -
projectBudgetId: integer
(int64)
The system-generated identifier of a project budget.
-
projectCode: string
Minimum Length:
1
Maximum Length:60
The project associated with this budget item. -
projectId(required): integer
(int64)
The unique identifier for the project.The project object can also be identified by its unique criteria.
-
quantity: number
(double)
The number of each budget item needed to complete the work.
-
sourceId: string
Maximum Length:
255
The unique identifier of budget item data in an external source. -
unitsOfMeasureId: integer
(int64)
The Unit of Measure used for the budget item.
-
workspaceCode: string
Minimum Length:
0
Maximum Length:60
The user-specified identifier of a workspace.
Nested Schema : budgetItemCost
Contains Budget Item cost related fields.
Match All
Contains Budget Item cost related fields.
Show Source
-
object
ApiEntityBudgetItemCostInput
Title:
ApiEntityBudgetItemCostInput
Nested Schema : cbsCodes
Type:
array
List of cbs codes in hierarchy for the CBS which needs to be associated with the item. 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 : configuredFields
Type:
array
The list of configured fields for a budget item.
Show Source
-
Array of:
object ApiEntityBudgetItemConfiguredFieldValueInput
Title:
ApiEntityBudgetItemConfiguredFieldValueInput
This entity represents a BudgetItemConfiguredFieldValue object, a unique BudgetItemConfiguredFieldValue object can be identified by the following combinations of the fields.- budgetItemConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
Nested Schema : ApiEntityBudgetItemCostInput
Type:
object
Title:
Show Source
ApiEntityBudgetItemCostInput
-
budgetItemId(required): integer
(int64)
The system-generated identifier of a budget item.
-
laborRateProject: number
(double)
The cost per labor hour of the budget line item. This value is based on the project currency.
-
originalCostProject: number
(double)
The original cost of the budget line item. This value is based on the project currency.
-
unitRateProject: number
(double)
The cost per Unit of Measure for the budget line item. This value is based on the project currency.
Nested Schema : ApiEntityBudgetItemConfiguredFieldValueInput
Type:
object
Title:
ApiEntityBudgetItemConfiguredFieldValueInput
This entity represents a BudgetItemConfiguredFieldValue object, a unique BudgetItemConfiguredFieldValue object can be identified by the following combinations of the fields.
Show Source
- budgetItemConfiguredFieldValueId
- columnDefinitionId
- columnName
- columnLabel
-
action: string
Allowed Values:
[ "DELETE" ]
Provide value for this field during object update to delete the assigned configured field value. -
budgetItemConfiguredFieldValueId: integer
(int64)
The unique identifier for the Budget Item Configured Field.
-
budgetItemId: integer
(int64)
The system-generated identifier for an Budget.
-
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. -
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
200 Response
A collection of object IDs mapped to a canonical link of the object with corresponding warning messages if any warnings were generated while processing the update request. For example - {"links":{"1":"https://[host]:[port]/api/restapi/[object]/1","2":"https://[host]:[port]/api/restapi/[object]/2"},"warnings":[{"primaryKeyName":"objectIdFieldName","uniqueFieldName":"object_code_01","uniqueFieldValue":"objectCodeFieldName","primaryKeyValue":1,"warningMessages":["warning_message_1","warning_message_2"]}]}
400 Response
Invalid input for the Project Budget Item service. Verify the request contains valid data, then resubmit the request.