Upgrade container using API?

Is it feasible to upgrade a container using the API?

I don’t want to use rancher-compose specially because I don’t want to leave the docker-rancher.yml on the server that triggers the update.

Found the solution: Upgrade Rancher Service using REST API