Get All Defect Line Items
get_all_defect_line_itemsRetrieve a paginated list of defect line items across all defects in a Procore project. Get full field details for targeted defect line items using company and project IDs.
Instructions
Returns a paginated list of defect line items across all defects. Use this when you already know which defect line item you want and need its full field set. company_id and project_id default to the values set by procore_set_config when omitted. Returns a single JSON object describing the defect line item. Read-only — it changes nothing in Procore. 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, project_id. Procore API (v2.0): Resource Management > Materials Management. Endpoint: GET /rest/v2.0/companies/{company_id}/projects/{project_id}/materials_mgmt/defects/line_items
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Query string parameter — page number for paginated results (default: 1) | |
| sort | No | Query string parameter — sort results by field. Prefix with '-' for descending order (e.g. '-created_at'). | |
| view | No | Query string parameter — response detail level. Use 'normal' for standard fields or 'extended' for all fields | |
| per_page | No | Query string parameter — the page size between 1 and 100. For Ids view the maximum page size is 5000. | |
| company_id | Yes | URL path parameter — the company identifier | |
| project_id | Yes | URL path parameter — the project identifier | |
| filters__labels | No | Query string parameter — comma-separated list of labels to filter defects by | |
| filters__search | No | Query string parameter — filter results by search | |
| filters__status | No | Query string parameter — filter by defect status(es) | |
| filters__vendor | No | Query string parameter — vendor name to filter defects by | |
| filters__columns | No | Query string parameter — comma-separated list of columns to include in the response | |
| filters__condition | No | Query string parameter — comma-separated list of conditions to filter defects by | |
| filters__defect_id | No | Query string parameter — comma-separated list of resource GUIDs to filter defects by |