# Upload file Add or update a file in a contract. \ \ The body of the request must be content-type 'multipart/form-data' and contain the file data. \ \ To update the contract document: Only specify the 'parentFileId' parameter. The 'folderId' and 'conflictResolution' parameters should not be used for these updates Endpoint: POST /v1/contracts/{contractId}/files Version: 1.0 ## Path parameters: - `contractId` (integer, required) The id of the contract ## Query parameters: - `comments` (string) Comments to be added to the file - `parentFileId` (integer) Creates a new version for the specified parent file id - `folderId` (integer) The id of the folder to upload the file within - `conflictResolution` (string) Defines behaviour for when a file conflict is foundOptions:ReplaceKeepBothSaveVersionSkip Enum: "Replace", "KeepBoth", "SaveVersion", "Skip" ## Request fields (multipart/form-data): - `file` (string)