Create Attachment
create_attachment_project_v1_0_5Upload a file attachment to a specified incident action, using multipart upload or a previously uploaded file by upload ID. Returns the new attachment with its ID.
Instructions
Uploads a file attachment to the specified incident action. Supports multipart file upload or referencing a previously uploaded file by upload ID. project_id defaults to the value set by procore_set_config when omitted, and action_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, action_id, attachment. Procore API: Project Management > Incidents. Endpoint: POST /rest/v1.0/projects/{project_id}/incidents/actions/{action_id}/attachments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action_id | Yes | URL path parameter — unique identifier of the incident action to attach a file to. | |
| attachment | Yes | JSON request body field — action 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. |