Create a Shared Folder
API Explorer: /folders
To create a shared folder:
- Create the folder object with a POST to the folders endpoint (see sample code).
- Capture the
folderIdreturned asidfrom the response. - Upload files (such as scripts, data files or YAML Taurus configuration files) by using the
folderIdand the code explained in the Upload or Update Files to Shared Folder section.
Once created, a shared folder can be used as part of any of your tests, so make sure to save the id attribute value for later use. This folderId will be used as a parameter to identify the shared folder.
Create a Shared Folder
curl 'https://a.blazemeter.com/api/v4/folders' \
-X POST \
-H 'Content-Type: application/json' \
--user 'api_key_id:api_key_secret' \
-d '{"name":"New_folder","workspaceId":123456}'
Create a Shared Folder Request Attributes
Attributes
-
namestringrequired
The name of the shared folder. Name can ONLY include letters, numbers and underscores
-
workspaceIdintegerrequired
The
workspaceIdto tie the shared folder to
Create a Shared FolderCreate a Shared Folder POST Body (JSON)
{
"name": "New_folder",
"workspaceId": 123456
}
Create a Shared Folder Response Attributes
To see a breakdown of the attributes, please see The Folder Object section.