Upload/update version or metadata of a file
Changed onReplaces all editable fields of a file with the supplied values. Use PATCH to change only some fields.
Because this is a full replace, omitting 'folderId' (or setting it to null) moves the file to the root folder. The destination folder is not validated for existence. 'fileName' is required (maximum 256 characters). 'userId' falls back to the authenticated user when omitted. Additional data values are merged with existing keys; null or empty additional data is a no-op. 'isFavorite' is ignored when null.
The response always includes a presigned PUT URL (valid for 1 hour) that can optionally be used to upload a new version of the file. Every call records a new upload request whether or not the URL is used.
Request
- Base URLhttps://api.smokeball.com
- URLhttps://api.smokeball.com/matters/{matterId}/documents/files/{fileId}
- AuthAPI key in header x-api-key and API key in header Authorization
Path parameters
Unique identifier (GUID) of the matter.
Unique identifier (GUID) of the file.
Request body
Example request
{
"fileName": "court filing.pdf",
"folderId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"userId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8",
"fileAdditionalData": {
"Author": "Jane Smith",
"Pages": 12,
"Signed": true
},
"isFavorite": true
}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"
}Changes
- breaking
the response's body type changed from
objecttostringfor status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- breaking