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
Request header
Content-Type: multipart/form-data; boundary=----Boundary7MA4YWxkTrZu0gW
------Boundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="contract.pdf"
Content-Type: application/pdf
<Binary file contents>
------Boundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="targetResourceType"
ContractCreation
------Boundary7MA4YWxkTrZu0gW--Response
{ "id": 9456 }