# Create and update from API ore CLI

**URL:** <https://forums.suse.com/t/create-and-update-from-api-ore-cli/2348>\
**Category:** Rancher 1.x\
**Created:** [April 7, 2016, 6:40am UTC](https://forums.suse.com/t/create-and-update-from-api-ore-cli/2348 "2016-04-07T06:40:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattiashem](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mattiashem](https://forums.suse.com/u/mattiashem)\
**Post date:** [April 7, 2016, 6:40am UTC](https://forums.suse.com/t/create-and-update-from-api-ore-cli/2348/1 "2016-04-07T06:40:49Z")

</div>

Hi

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

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 12, 2016, 5:00pm UTC](https://forums.suse.com/t/create-and-update-from-api-ore-cli/2348/2 "2016-04-12T17:00:52Z")

</div>

[http://docs.rancher.com/rancher/api/api-resources/service/](http://docs.rancher.com/rancher/api/api-resources/service/)

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