Create Project File
create_project_fileCreates a new file in a specified Procore project. Use to add documents with metadata like name, folder, and tracking settings.
Instructions
Create a new File in the specified Project. Use this to create a new Documents in Procore. Creates a new Documents and returns the created object on success (HTTP 201). Required parameters: project_id. Procore API: Core > Documents. Endpoint: POST /rest/v1.0/files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Query string parameter — unique identifier for the project. | |
| parent_id | No | JSON request body field — the ID of the parent folder to create the file in. If not set the file will be created under the root folder. | |
| name | No | JSON request body field — the Name of the file | |
| is_tracked | No | JSON request body field — status if a file should be tracked (true/false) | |
| explicit_permissions | No | JSON request body field — set file to private (true/false) | |
| description | No | JSON request body field — a description of the file | |
| data | No | JSON request body field — [DEPRECATED] File to use as file data. Please use upload_uuid instead. Note that it's only possible to post a file using a multipart/form-data body (see RFC 2388). Most HTTP libraries will do the r... | |
| unique_name | No | JSON request body field — toggles automatic renaming if the file name is already taken in a folder (unique_name = true). Returns a name taken error if a file name is taken in a folder (unique_name = false). | |
| upload_uuid | No | JSON request body field — uUID referencing a previously completed Upload. This is the recommended approach for file uploads. See Company Uploads or Project Uploads endpoints for instructions on how to use uploads. You sho... | |
| 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 ... |