Create and update from API ore CLI

Hi

I have found the API docs but cant find how to add a new service to a running stack?

http://docs.rancher.com/rancher/api/api-resources/service/

environmentId is the ID of the stack (called “enviornment” in the API) to add to.