Managing Files
With the BitBar REST API, you can manage, upload, get, download, update, and delete files.
Upload a file
curl -X POST -u <api-key>: https://cloud.bitbar.com/api/me/files -F "[email protected]"
Get a file ID
curl -u <api-key>: https://cloud.bitbar.com/api/me/files/{file-ID}
List all files
curl -u <api-key>: https://cloud.bitbar.com/api/me/files
Download a file
curl -L -u <api-key>: https://cloud.bitbar.com/api/me/files/{file-ID}/file --output FILE
Delete a file
curl -X DELETE -u <api-key>: https://cloud.bitbar.com/api/me/files/{file-ID}
Update a file name
curl -X POST -u <api-key>: https://cloud.bitbar.com/api/me/files/{file-ID}?name=new-file-name
Update file content
curl -X POST -u <api-key>: https://cloud.bitbar.com/api/me/files/{file-ID}/file -F "[email protected]"