Creates a file resource (File, Folder, ContractDocument).
- File or ContractDocument upload: Use
Content-Type: multipart/form-data - Folder creation: Use
Content-Type: application/json
The type of the resource the file will be uploaded to
Enum:"Matter""Contract""ContractCreation"
Example:"Matter"
The id of the resource the file will be uploaded to. Required unless TargetResourceType is ContractCreation
Example:65436
- Sandbox APIhttps://api-sandbox.lawvu.com/v2/files
- Production APIhttps://api.lawvu.com/v2/files
- multipart/form-data
- application/json
- Example of a file uploaded to create a contract
- Example of a file uploaded to a contract
- Example of a file uploaded to a matter
- Example of a file uploaded into a folder within a contract
boundary=abc1234
abc1234
Content-Disposition: form-data; name="file"; filename="contract.pdf"
Content-Type: application/pdf
<Binary file contents>
abc1234
Content-Disposition: form-data; name="targetResourceType"
ContractCreation
abc1234Response
{ "id": 9456 }