Documentation
- Getting Started
- Authentication
- Making Requests
- Resource Creation
- Searching
- Plugins
- Webhooks
Tutorials
APIs
- Activity Codes
- Archive
- Authorization
- Bank Accounts
- Contacts
- Events
- Expenses
- Fees
- Files
- GETGet files on a matter
- POSTAdd file to a matter
- GETGet a file
- PUTUpload/update version or metadata of a file
- DELDelete a file
- PATCHPatch version or metadata of a file
- GETGet download url for a file
- GETGet upload url for a file
- POSTAdd files to a matter
- GETReturns info to preview a file
- POSTCreates a preview request
- GETReturns info to preview a file
- GET
- Firm
- Firm Users
- Folders
- Invoices
- Layout Designs
- Layout Matter Items
- Matter Billing Configuration
- Matter Items
- Matter Types
- Matters
- Memos
- Notifications
- Plugins
- Referral Types
- Relationships
- Roles
- Staff
- Stages
- Subscription Payments
- Subscription Promotions
- Subscriptions
- Tasks
- Users
- Webhooks
Files
Add files to a matter
Uploads a batch of files for the specified matter. Used for data migrations.
POST
/
matters
/
{matterId}
/
documents
/
files
/
bulk
Copy
Ask AI
curl --request POST \
--url https://api.smokeball.com/matters/{matterId}/documents/files/bulk \
--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",
"folderPath": "Court Filings/2023/January",
"fileAdditionalData": {},
"dateCreated": "2023-04-23T14:00:00Z",
"dateModified": "2023-04-24T14:00:00Z"
}
]'
Copy
Ask AI
[
{
"fileId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"uploadUrl": "",
"expiry": "2022-04-23T14:30:00Z"
}
]
Path Parameters
Body
The body is of type object[]
.
Response
202
application/json
When request is accepted.
The response is of type object[]
.
Copy
Ask AI
curl --request POST \
--url https://api.smokeball.com/matters/{matterId}/documents/files/bulk \
--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",
"folderPath": "Court Filings/2023/January",
"fileAdditionalData": {},
"dateCreated": "2023-04-23T14:00:00Z",
"dateModified": "2023-04-24T14:00:00Z"
}
]'
Copy
Ask AI
[
{
"fileId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
"uploadUrl": "",
"expiry": "2022-04-23T14:30:00Z"
}
]
Assistant
Responses are generated using AI and may contain mistakes.