Sync Purchase Order Lines
sync_purchase_order_linesCreate or update purchase order lines in Procore by matching ids or origin_ids and specifying existing material items.
Instructions
Creates or updates Purchase Order lines identified using either ids or origin_ids. The material on the line must already exist and can be specified using either item_id or item_origin_id. The connected Purchase Order header must already exist. The maximum number of entities per request is 1000. Exceeding this limit will result in a 413 response. See https://developers.procore.com/documentation/using-sync-actions for more information. Send only the fields you intend to change; omitted fields keep their current values. company_id and project_id default to the values set by procore_set_config when omitted, and id must identify an existing parent record — resolve it with the matching list tool first. Returns the modified purchase order line 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: id, company_id, project_id. Procore API (v2.0): Resource Management > Materials Management. Endpoint: PATCH /rest/v2.0/companies/{company_id}/projects/{project_id}/materials_mgmt/purchase_orders/{id}/line_items/sync
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | URL path parameter — unique identifier of the Materials Management resource | |
| company_id | Yes | URL path parameter — the company identifier | |
| project_id | Yes | URL path parameter — the project identifier |