Get Defect Header By ID
get_defect_header_by_idRetrieve the full header details for a specific defect by its ID. Use when you need the complete field set for a known defect, without modifying Procore data.
Instructions
Returns the header details for a specific defect document. Use this when you already know which defect header you want and need its full field set. 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 a single JSON object describing the defect header. 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: id, 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/{id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | URL path parameter — unique identifier of the Materials Management resource | |
| view | No | Query string parameter — response detail level. Use 'normal' for standard fields or 'extended' for all fields | |
| company_id | Yes | URL path parameter — the company identifier | |
| project_id | Yes | URL path parameter — the project identifier |