Create Direct Cost Line Item
create_direct_cost_line_itemCreate a new direct cost line item in Procore by supplying project and direct cost IDs, with optional fields like amount, quantity, unit cost, tax code, and description.
Instructions
Create a new Direct Cost Line Item. This action does not support concurrent requests. If there is an attempt to 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. Note: A budget line item will automatically be created for Non-budgeted line items for all new projects and for projects enabled with Non-Budgeted line item beta functionality. Pass the record's fields as top-level arguments — they are nested under "line_item" in the request payload for you. project_id defaults to the value set by procore_set_config when omitted, and direct_cost_id must identify an existing parent record — resolve it with the matching list tool first. Acts on the direct cost line item and returns Procore's response for the operation. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: project_id, direct_cost_id. Procore API: Construction Financials > Project Level Direct Costs. Endpoint: POST /rest/v1.0/projects/{project_id}/direct_costs/{direct_cost_id}/line_items
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uom | No | JSON request body field — unit of measure of the described item | |
| amount | No | JSON request body field — the amount for this Project Level Direct Costs operation | |
| quantity | No | JSON request body field — quantity of described item | |
| origin_id | No | JSON request body field — unique identifier of the origin | |
| unit_cost | No | JSON request body field — unit cost of described item | |
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| description | No | JSON request body field — the description for this Project Level Direct Costs operation | |
| origin_data | No | JSON request body field — the origin data for this Project Level Direct Costs operation | |
| tax_code_id | No | JSON request body field — unique identifier of the tax code | |
| wbs_code_id | No | JSON request body field — unique identifier of the wbs code | |
| cost_code_id | No | JSON request body field — unique identifier of the cost code | |
| extended_type | No | JSON request body field — calculated amount from quantity and unit cost or manually entered amount | |
| direct_cost_id | Yes | URL path parameter — unique identifier of the direct cost | |
| line_item_type_id | No | JSON request body field — unique identifier of the line item type |