Create Project Upload
create_project_uploadCreate an upload record to associate a file with a Procore project by obtaining instructions for posting the file to Procore's storage service.
Instructions
Creating an Upload is the first step in associating a file to a resource in Procore. Creating an Upload can be seen as fetching instruction on how to post your file directly to Procore's storage service. The instructions contain three properties: a UUID to reference the Upload, a URL which has to be used to post the file, and fields which need to be posted together with the file. To upload the file you must POST to the URL in the url property with a multipart/form-data body (see RFC 2388)... Use this to create a new File Access & Storage records in Procore. Creates a new File Access & Storage records and returns the created object on success (HTTP 201). Required parameters: project_id, response_filename. Procore API (v1.1): Core > File Access & Storage. Endpoint: POST /rest/v1.1/projects/{project_id}/uploads
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| response_filename | Yes | JSON request body field — by setting a filename you ensure that the storage service knows the filename of the upload. Files are often downloaded directly from the storage service and without the filename they will save on t... | |
| response_content_type | No | JSON request body field — the content-type set through this parameter will be used by the storage service during download just like the response_filename. Setting this value is less important because HTTP clients and operat... | |
| attachment_content_disposition | No | JSON request body field — the content type set through this parameter will be used by the storage system during download, similar to the response_filename. When set to true, the file will be downloaded as an attachment. Oth... | |
| size | No | JSON request body field — file size in bytes | |
| segments | No | JSON request body field — upload segments |