Create Attachments
create_attachments_companyCreate a new attachment for an existing asset in Procore by providing the company ID and asset ID. Returns the created attachment with its new ID, and errors include HTTP status codes for troubleshooting.
Instructions
Creates attachments for a given asset. company_id defaults to the value set by procore_set_config when omitted, and asset_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: company_id, asset_id. Procore API (v2.0): Core > Assets. Endpoint: POST /rest/v2.0/companies/{company_id}/assets/{asset_id}/attachments
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | URL path parameter — unique identifier for the Asset | |
| company_id | Yes | URL path parameter — unique identifier for the company. | |
| Accept-Language | No | JSON request body field — locale for localized response messages (for example: en, fr-FR, pseudo) |