Pull list of available errata for each server via API

I am looking for a way to pull a list of available errata for each server
via the API. I was able to do it in the old Satellite API, but I haven't
found a way to do it through foreman. I am looking to get a list of errata
like you get when you go to https://<servername>/content_hosts/<id>/errata.

Any help would be appreciated.

Thanks,

Rob