Hi,
I have been trying to export a container from 1 instance and import it to another using APIs in a script, but when I try to add the exported JSON as the arguement for import API, I get a 414, anyone else facing the same? Or can point out what I am doing wrong here:
print(container)
params={ ‘exportedContainerVersion’:6,‘idSite’:siteid, ‘idContainer’:‘ID’,‘token_auth’:token_auth}
updcontainer= “https://”+url+“/?module=API&method=TagManager.importContainerVersion”
print(requests.Request(‘POST’,updcontainer,params=params).prepare().url)
print(requests.post(updcontainer,params=params,verify=False,json=container))
1 post - 1 participant