Not able to share private location between work spaces using Curl command on Windows
search cancel

Not able to share private location between work spaces using Curl command on Windows

book

Article ID: 217573

calendar_today

Updated On:

Products

BlazeMeter

Issue/Introduction

Getting 404 for sharing private locations between workspaces.

 

C:\Users\u140876>curl https://blazemeter.k8saeeps.acddd.net/api/v4/user/private-locations/xxx/add-workspace --user "xxx" -X POST -H "Content-Type: application/json" -d "{\"workspaceId\": 897352}"
{
    "error": {
        "code": 404,
        "message": "Not Found"
    },
    "api_version": 4,
    "result": null,
    "request_id": "60ca3abae7c4f"
}

Environment

Release : 1.0

Component : BLAZEMETER 

Cause

N/A

Resolution

Use the below Curl command

curl -k -X POST https://a.blazemeter.com/api/v4/private-locations/<harborID>/add-workspace -H "Content-Type: application/json" --user 'ID:Secret' -d "workspaceId" 

for example 

curl -k -X POST https://a.blazemeter.com/api/v4/private-locations/5fxxxxxxxxxx/add-workspace -H "Content-Type: application/json" --user "d3sdfsdfsdfdfd:b2e2ffffffeeeeeeeeeeeeeeessssdf0504c5efadfsdffsdfdsfd6a" -d "897482"