Create Attachment
create_attachment_projectAttach a file to a witness statement in a Procore project by supplying project and witness statement IDs plus the attachment payload; returns the created attachment with its new ID.
Instructions
Creates an attachment for the specified Witness Statement. project_id defaults to the value set by procore_set_config when omitted, and witness_statement_id must identify an existing parent record — resolve it with the matching list tool first. Creates the attachment 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, witness_statement_id, attachment. Procore API: Project Management > Incidents. Endpoint: POST /rest/v1.0/projects/{project_id}/incidents/witness_statements/{witness_statement_id}/attachments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes | JSON request body field — witness Statement Attachment. To upload an attachment you must upload the entire payload as `multipart/form-data` content-type with the `attachment` file. | |
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| witness_statement_id | Yes | URL path parameter — witness Statement ID |