cURL
curl --request PATCH \ --url https://api.smokeball.com/matters/{matterId}/documents/files/{fileId} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json-patch+json' \ --header 'x-api-key: <api-key>' \ --data '{ "fileName": "court filing.pdf", "folderId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2", "userId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8", "fileAdditionalData": {}, "isFavorite": true }'
{ "fileId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2", "uploadUrl": "", "expiry": "2022-04-23T14:30:00Z" }
Updates the metadata for a file or uploads a new version of the file
When request is accepted. Returns a 'UploadFileInfo' object.
The response is of type object.
object