According to https://www.paessler.com/manuals/prtg/object_manipulation#duplicating_clone I do the following (in Git Bash):
curl --insecure \ --data-urlencode "username=${user}" \ --data-urlencode "passhash=${pwdHash}" \ "https://prtg/api/duplicateobject.htm?id=9513&name=TEST&targetid=9510"
The sensor is created but despite of the manual's "the server replies with a redirect to the new object's web page, for example /sensor.htm?id=10214" only the progress infos are printed by curl.
PS: Your forum SW doesn't handle URL fragments correctly.
Add comment