Hide Forgot
JSON provided: { "architecture_id": 1 } Response: { "error": { "message": "ERROR: operator does not exist: character varying = integer\nLINE 1: ...architectures\".\"id\" = 1 OR \"architectures\".\"name\" = 1)) ORD...\n ^\nHINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.\n" } } Ultimately, one should be able to provide the exact same JSON received from a GET on /api/v2/hosts/:id back as a PUT without errors. From http://projects.theforeman.org/issues/13670 Customer is running into this. If he typecasts it as a string there are no errors.
While this ticket is being worked, can we amend the API doc- https://<satellite-fqdn>/apidoc/v2/hosts/create.html for passing the hostgroupd_id as string?
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > For information on the advisory, and where to find the updated files, follow the link below. > > If the solution does not work for you, open a new bug report. > > https://access.redhat.com/errata/RHSA-2018:0336