Add file to a matter
Registers a new file on the matter and returns a presigned PUT URL (valid for 1 hour) to upload its content. The file is created only after the content has been PUT to the URL and confirmed by the storage callback; the 'Location' link to 'GetFileById' returns 404 until then.
'fileName' is split on the last '.' into name and extension. The name is normalised to XML-safe characters and must contain at least one valid character. 'folderId' and 'folderPath' are mutually exclusive (400 when both are set). 'folderId' is not validated for existence or matter membership; an unknown value is accepted as-is. Additional data values must be strings, integers, numbers, booleans or null; keys must not be blank.
Path parameters
Unique identifier (GUID) of the matter.
Request body
Example request
{
"fileName": "court filing.pdf",
"folderId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"userId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"folderPath": "Court Filings/2023/January",
"fileAdditionalData": {
"Author": "Jane Smith",
"Pages": 12,
"Signed": true
},
"dateCreated": "2023-04-23T14:00:00Z",
"dateModified": "2023-04-24T14:00:00Z"
}Response
When request is accepted. Returns an 'UploadFileInfo' object.
Example response
{
"fileId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"uploadUrl": "https://example-bucket.s3.amazonaws.com/apiuploads/2f1c9a3e-6b1d-4c7e-9a0f-1d2e3f4a5b6c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-Signature=...",
"expiry": "2022-04-23T14:30:00Z"
}