Create Witness Statement
create_witness_statementCreate a witness statement for an incident in a Procore project, using incident and witness IDs. The new record is returned with its ID.
Instructions
Creates a new witness statement in the specified Procore project. 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. Creates the witness statement 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: project_id, incident_id, witness_id. Procore API: Project Management > Incidents. Endpoint: POST /rest/v1.0/projects/{project_id}/incidents/witness_statements
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | Yes | JSON request body field — unique identifier of the witness | |
| incident_id | Yes | JSON request body field — the ID 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 ... |