Update Witness Statement
update_witness_statementUpdate an existing witness statement in Procore by sending only the fields you want to change; omitted fields keep their current values. Requires project ID and witness statement ID.
Instructions
Updates the specified Witness Statement. Send only the fields you intend to change; omitted fields keep their current values. Pass the record's fields as top-level arguments — they are nested under "witness_statement" in the request payload for you. project_id defaults to the value set by procore_set_config when omitted, and id must identify an existing parent record — resolve it with the matching list tool first. Returns the modified witness statement 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: project_id, id. Procore API: Project Management > Incidents. Endpoint: PATCH /rest/v1.0/projects/{project_id}/incidents/witness_statements/{id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | URL path parameter — witness Statement ID | |
| form_ids | No | JSON request body field — forms to attach to the response | |
| image_ids | No | JSON request body field — images to attach to the response | |
| recording | No | JSON request body field — the recording for this Incidents operation | |
| statement | No | JSON request body field — the account of the event by the witness in rich text form. | |
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| witness_id | No | JSON request body field — unique identifier of the witness | |
| incident_id | No | Query string parameter — unique identifier of the incident | |
| upload_uuids | No | JSON request body field — array of uploaded file UUIDs. | |
| date_received | No | JSON request body field — date that the Witness Statement was received. This assumes the dates provided are in the project timezone. | |
| file_version_ids | No | JSON request body field — file Versions to attach to the response | |
| drawing_revision_ids | No | JSON request body field — drawing Revisions to attach to the response | |
| custom_field_%{custom_field_definition_id} | No | JSON request body field — value of the custom field. The data type of the value passed in corresponds with the data_type of the Custom Field Definition. For a lov_entry data_type the value passed in should be the ID of one ... |