PATCH /rest/v1.0/companies/{company_id}/work_breakdown_structure/segments/{segment_id}/segment_items/{id}

Update a specific Company Segment Item. For cost types (line item types), the status attribute can be used to activate or deactivate the cost type when the cost type deactivation feature is enabled. Deactivating the default cost type (Other) or the last remaining active cost type will return a 422 error.

Servers

Path parameters

Name Type Required Description
id Integer Yes

Segment Item ID

segment_id Integer Yes

Segment ID

company_id Integer Yes

Unique identifier for the company.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Procore-Company-Id Integer Yes

Unique company identifier associated with the Procore User Account.

Query parameters

Name Type Required Description
standard_cost_code_list_id Integer No

Standard Cost Code List ID (required for cost codes only)

Request body fields

Name Type Required Description
name String No

Segment Item Name

status String No

Segment Item Status

Valid values:

  • "inactive"
  • "active"
code String No

Segment Item Code

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.