PATCH /rest/v1.0/projects/{project_id}/direct_costs/line_items/sync
This endpoint creates or updates a batch of Direct Cost Line Items. For this endpoint either wbs_code_id or cost_code_id and line_item_type_id are required when creating a line item. If both wbs_code_id and cost_code_id are provided, the endpoint will use wbs_code_id. This action does not support concurrent requests. If there is an attempt to update or create a Direct Cost Line Item that belongs to a Direct Cost which is being updated or deleted by another request, a 409 Conflict error will be returned. See Using Sync Actions for additional information.
Servers
- https://api.procore.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
project_id |
Integer | Yes |
Unique identifier for the project. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Procore-Company-Id |
Integer | Yes |
Unique company identifier associated with the Procore User Account. |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
updates[] |
Array | Yes | |
updates[].direct_cost_id |
Integer | No |
Direct Cost ID |
updates[].line_item_type_id |
Integer | No |
Line Item Type ID |
updates[].description |
String | No |
Description |
updates[].quantity |
Number | No |
Quantity of described item |
updates[].uom |
String | No |
Unit of measure of the described item Possible values:
|
updates[].unit_cost |
Number | No |
Unit cost of described item |
updates[].origin_data |
String | No |
Origin Data |
updates[].extended_type |
String | No |
Calculated amount from quantity and unit cost or manually entered amount Possible values:
|
updates[].id |
Integer | No |
ID |
updates[].wbs_code_id |
Integer | No |
WBS Code ID |
updates[].amount |
Number | No |
Amount |
updates[].origin_id |
String | No |
Origin ID |
updates[].cost_code_id |
Integer | No |
Cost Code ID |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.