Description of problem: Updating a host's subscription facets(katello_subscription_facets) compulsorily requires the facet id to be included in facet params. How reproducible: --> Below API call returns successful but does not update the content. The same is mentioned in the API documentation too. #curl -X PUT https://satellite.lab.example.com/api/v2/hosts/10 -k -s -u admin:changeme -H 'Content-Type: application/json' -d '{"id":10,"host": {"subscription_facet_attributes": {"service_level":"Self-Support"}}}' -->But after passing facets id in facet params the content does get updated. #curl -X PUT https://satellite.lab.example.com/api/v2/hosts/10 -k -s -u admin:changeme -H 'Content-Type: application/json' -d '{"id":10,"host": {"subscription_facet_attributes": {"id":9,"service_level":"Self-Support"}}}' There was a bugzilla #1312107 created previously and has the current status "Status: RELEASE_PENDING → CLOSED" in 6.2.0 The version on which this has been observed is 6.2.12
Hello Suraj, Its a glitch in the documentation, Ideally the ID is required to update the facet. need to update the documentation.
Amit, That seems to be the opposite of the expected behavior due to bugzilla #1312107.
Are you still able to reproduce with last 6.2 or 6.3 release? This should have been already resolved.
I have tested this on satellite 6.3 not able to reproduce it again. I guess this has been resolved.
based on Suraj's comment closing the BZ. If reproduced feel free to reopen.