While using host.create, and set profile values for new host, looks like profile does not inserts into database.
API request (IPs chaged:
{"params":[{"host":"123","ip":"0.0.0.0","dns":"","useip":1,"groups":[
{"groupid":6}],"profile":
{"name":"123","contact":"test client","location":"test"},"parentTemplates":[
{"templateid":10047}]}],"auth":"d65d71256c08764e357d3474737d0de6","jsonrpc":"2.0","method":"host.create","id":1}
I'm fixed this bug in my installation by changing line 38860 in class.chost.php :
if(isset($host['profile']) && !empty($host['extendedProfile'])) {
changed to
if(isset($host['profile']) && !empty($host['profile'])) {
after this problem dissapeared