Upload or Update Files to Shared Folders in Private Cloud
API Explorer: /folders/{folderId}/files
To upload a file asset to a shared folder, POST the file to the folderId
(you need to know the folderId
of the folder). Use the following template for the file path and name:
curl -X POST -F 'file=@path to file/file.ext' ...
The sample code uploads a file (@/my/path/to/colors.csv
) to a folder with an ID of 5d2f86f30cfb1d84717bf4a3
. Replace @/my/path/to/colors.csv
with the actual path and file name and 5d2f86f30cfb1d84717bf4a3
with your folderId
.
To update the contents of an uploaded file, repeat the same operation (upload the updated file using the same file name).
folderId
of the shared folder, use List Shared Folders to return a list of your created shared folders.Upload or Update Files to Shared Folders in Private Cloud
curl 'https://your.internal.blazemeter.net/api/v4/folders/5d2f86f30cfb1d84717bf4a3/files' \
-X POST \
-F 'file=@/my/path/to/colors.csv' \
--user 'api_key_id:api_key_secret'
Response200 OK
{
"created": 1563395827,
"files": [],
"id": "5d2f86f30cfb1d84717bf4a3",
"name": "myFolder",
"workspaceId": 123456
}