Retrieve and Post values.yaml to Helm Chart via Rancher API

How is it possible to read the values.yaml of a Helm Chart and then, if needed, patch it? It has to be done using the Rancher API, because these actions are supposed to be performed by a client which only has access to the Rancher API.