API for patch updates

There used to be an API, but I can’t seem to access it anymore. Has anything changed or is there an api still? I’m just looking into automating patch updates through an ajax web service to a php page. Just curious.