curl --request POST \
--url https://api.voicebot.studio/api/v1/files/create \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form file='@example-file'{
"id": "<string>",
"name": "<string>",
"size": 123,
"mimeType": "<string>",
"purpose": "<string>",
"path": "<string>",
"bucket": "<string>",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"organizationId": "<string>",
"isDeleted": true,
"originalName": "<string>",
"key": "<string>",
"metadata": {}
}Upload a new file
Args: file: The file to upload filename: Optional custom filename. If not provided, uses the original filename membership: Membership information db: MongoDB database instance
curl --request POST \
--url https://api.voicebot.studio/api/v1/files/create \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form file='@example-file'{
"id": "<string>",
"name": "<string>",
"size": 123,
"mimeType": "<string>",
"purpose": "<string>",
"path": "<string>",
"bucket": "<string>",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"organizationId": "<string>",
"isDeleted": true,
"originalName": "<string>",
"key": "<string>",
"metadata": {}
}Successful Response
Schema for file response