BM: Updating Shared Folders via API is not working
book
Article ID: 193037
calendar_today
Updated On:
Products
BlazeMeter
Issue/Introduction
I'm unable to update shared folders via API as described here: https://guide.blazemeter.com/hc/en-us/articles/115003324189-How-To-Update-Shared-Folders-via-API-How-To-Update-Shared-Folders-via-API
Everything seems to work fine, but the end result is that a file of 0 bytes gets placed in the shared folder.
The curl command seems to find the file and send bytes, but on the other side it ends up at 0. No idea why.
Cause
Need to add an extra parameter, our documentation is off and needs to be corrected.
Environment
Release : SAAS
Component : PACKAGE CA BLAZEMETER
Resolution
Needed to add -H "Content-Type: application/octet-stream" --data-binary "<path to file>" to the URL.