Dunno what to say, I’m not familiar with Postman but watching your video I didn’t see anything obviously wrong, unless it’s a copy/paste from the wrong (unsynced) source baseline?
I put together a short Python code that is working on mine.
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
# import warnings
verify = False
server = "https://my-server-url:52311"
username = "my-operator-name"
password = "my-operator-password"
baseline_url = "baseline/custom/test/5395"
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def restapi(
url,
operation,
data=None,
headers=None,
verify=None,
auth=None,
querystring=None,
files=None,
):
if auth == (None, None) or auth is None:
# print("restapi trying with authorization header or anonymous")
response = requests.request(
operation,
url,
data=data,
headers=headers,
verify=verify,
params=querystring,
files=files,
)
else:
# print("restapi: auth is " + str(auth))
response = requests.request(
operation,
url,
data=data,
headers=headers,
verify=verify,
auth=auth,
params=querystring,
files=files,
)
if not response.ok:
raise ValueError(
"Error encountered when sending "
+ operation
+ " to "
+ url
+ " [response was: HTTP "
+ str(response.status_code)
+ " "
+ response.reason
+ "]"
)
else:
return response
response = restapi(
url=server + "/api/" + baseline_url + "/sync",
operation="GET",
verify=False,
auth=(username, password),
)
synced_baseline = response.text
response = restapi(
url=server + "/api/" + baseline_url,
operation="PUT",
verify=False,
data=synced_baseline,
auth=(username, password),
)
print(response.text)