Follow

How To Update Shared Folders via API

 

You can upload a file to a shared folder using API, so simple follow the procedure below using your Terminal/CLI window:

Step 1

curl -X GET https://a.blazemeter.com/api/v4/folders/?workspaceId=<workspaceId> -H "Content-Type: application/json" --user 'id:secret'

example response:

{
"limit": 10,
"skip": 0,
"total": 6,
"hidden": 0,
"api_version": 4,
"error": null,
"result": [
{
"id": "58e29fd7ca293bbb5c05776f",
"name": "Data",
"created": 1491247063,
"workspaceId": 123429
},
{
"id": "594bfc8f67f3bf98257b23ce",
"name": "TCMS_Data",
"created": 1498152079,
"workspaceId": 123429
},
{
"id": "58e29fceaf1098fb3e185c11",
"name": "Test",
"created": 1491247054,
"workspaceId": 123429
},
{
"id": "5a023e063d71f4060b214518",
"name": "TestAPI",
"created": 1510096390,
"workspaceId": 123429
},
{
"id": "58e29fc3d0a1a29b46672685",
"name": "TestFragment",
"created": 1491247043,
"workspaceId": 123429
},
{
"id": "592da828a7ded2542bc9258c",
"name": "data",
"created": 1496164392,
"workspaceId": 123429
}
]
}


Step 2

curl -X PUT -F "file=@<path_to_file>/<filename>” <response_url_from_step1>


Example Response:

curl -X PUT -F "file=@<path_to_file>/<filename>” <response_url_from_step1>

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.