Update All Company Segment Items
update_all_company_segment_itemsBulk update selected WBS segment items and their children in Procore by applying the same attributes to all. Handles status deactivation/reactivation, including cost types when enabled.
Instructions
Update All Segment Items with the same attributes. The endpoint handles updating status (deactivating or reactivating) for segment items and their children, including cost types when the cost type deactivation feature is enabled. Deactivating the default cost type (Other) or the last remaining active cost type is not allowed. For bulk status changes on the Cost types (line item types) segment, attributes must contain only status. Any other property in attributes results in 400 Bad Request with an error message. Other segment types may define their own allowed attributes keys. Send only the fields you intend to change; omitted fields keep their current values. company_id defaults to the value set by procore_set_config when omitted, and segment_id must identify an existing parent record — resolve it with the matching list tool first. Returns the modified company segment 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: company_id, segment_id, ids, attributes. Procore API: Construction Financials > Work Breakdown Structure. Endpoint: PATCH /rest/v1.0/companies/{company_id}/work_breakdown_structure/segments/{segment_id}/segment_items/update_all
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | JSON request body field — list of segment item IDs. The API will find and update the children of the provided IDs. | |
| attributes | Yes | JSON request body field — fields to apply to every selected segment item. For bulk **Cost types** status updates (when cost type deactivation is enabled), send **only** `status`; extra keys are rejected with **400 Bad Reque... | |
| company_id | Yes | URL path parameter — unique identifier for the company. | |
| segment_id | Yes | URL path parameter — unique identifier of the segment |