It's likely out of the scope of this PR to fix this but can we file a bug or feature request to Foreman?  I'm pretty sure this is incorrect according to our API standards.