Create Company Segment Item
create_company_segment_itemCreate a new segment item in Procore for a given company and segment, providing code and name. Returns the created record with its new ID.
Instructions
Creates a new company segment item for the specified Procore company. 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. Creates the company segment item and returns it with its new id (HTTP 201); calling it again creates another record. 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, code, name. Procore API: Construction Financials > Work Breakdown Structure. Endpoint: POST /rest/v1.0/companies/{company_id}/work_breakdown_structure/segments/{segment_id}/segment_items
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JSON request body field — segment Item Code | |
| name | Yes | JSON request body field — segment Item Name | |
| parent_id | No | JSON request body field — unique identifier of the parent | |
| company_id | Yes | URL path parameter — unique identifier for the company. | |
| segment_id | Yes | URL path parameter — unique identifier of the segment | |
| default_uom_id | No | JSON request body field — iD of the Unit of Measure to set as the default for this Cost type (line item type) segment item. Pass null to remove the existing default. Part of the Units of Measure Validation beta. | |
| segment_item_list_id | No | JSON request body field — segment Item List ID |