Hello,
i try to used the api to change a override_value in forman, when i try to changed a string it s work :
curl -s -k -X PUT -u xxxx:xxxx -H "Content-Type:application/json,version=2" -H "Accept:application/json" -d '
{
"override_value" : {
"match": "fqdn=toto.sample.com",
"value" : "test1"
}
}
' https://forman.sample.com/api/smart_class_parameters/test_api1/override_values/2134 --insecure
but when i try to change a yaml like this one :
curl -s -k -X PUT -u xxxx:xxxx -H "Content-Type:application/json,version=2" -H "Accept:application/json" -d '
{
"override_value" : {
"match" : "fqdn=toto.sample.com",
"value" : {"websample" : {"test2" : "true"}}
}
}
' https://forman.sample.com/api/smart_class_parameters/test_api2/override_values/2135 --insecure
it s dont work
is somone see if i make a mistake for the yaml request ?