Sync Direct Cost Line Items
sync_direct_cost_line_itemsBatch create or update direct cost line items for a project. Send only changed fields to sync line items while preserving existing values.
Instructions
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. Send only the fields you intend to change; omitted fields keep their current values. project_id defaults to the value set by procore_set_config when omitted. Returns the modified direct cost line item on success. 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, updates. Procore API: Construction Financials > Project Level Direct Costs. Endpoint: PATCH /rest/v1.0/projects/{project_id}/direct_costs/line_items/sync
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | JSON request body field — the updates for this Project Level Direct Costs operation | |
| project_id | Yes | URL path parameter — unique identifier for the project. |