# Is it possible to add Device Cloud tags via RCI or some other API?

**URL:** <https://forums.digi.com/t/is-it-possible-to-add-device-cloud-tags-via-rci-or-some-other-api/15251>\
**Category:** Digi Remote Manager\
**Tags:** rci, api\
**Created:** [August 10, 2015, 9:16pm UTC](https://forums.digi.com/t/is-it-possible-to-add-device-cloud-tags-via-rci-or-some-other-api/15251 "2015-08-10T21:16:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billybobbain](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@billybobbain](https://forums.digi.com/u/billybobbain)\
**Post date:** [August 10, 2015, 9:16pm UTC](https://forums.digi.com/t/is-it-possible-to-add-device-cloud-tags-via-rci-or-some-other-api/15251/1 "2015-08-10T21:16:52Z")

</div>

I have an operation that updates our custom python code. Is it possible to set a tag on the device similar to how it is done through the GUI? We’d like to tag the device with our version, such as v1.0.11.

---

<div class="post-metadata">

**Author:** ![userid0](https://avatars.discourse-cdn.com/v4/letter/u/f6c823/32.png) [@userid0](https://forums.digi.com/u/userid0)\
**Post date:** [August 11, 2015, 7:54am UTC](https://forums.digi.com/t/is-it-possible-to-add-device-cloud-tags-via-rci-or-some-other-api/15251/2 "2015-08-11T07:54:47Z")

</div>

Yes. This is commonly done with the device description field:

```
  New Python Version: x.x.x

```

---

<div class="post-metadata">

**Author:** ![cpopp](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@cpopp](https://forums.digi.com/u/cpopp)\
**Post date:** [September 9, 2015, 3:14pm UTC](https://forums.digi.com/t/is-it-possible-to-add-device-cloud-tags-via-rci-or-some-other-api/15251/3 "2015-09-09T15:14:38Z")

</div>

You can use the /v1/devices/inventory API to set the tags on a device.

For example, an HTTP PUT to /ws/v1/devices/inventory/00000000-00000000-00409DFF-00000000

with payload

```auto
{
  "tags" : ["first tag", "second tag"]
}

```

will set two tags for that particular device.

If you prefer XML you can use the following (or set the Accept header to application/xml).

HTTP PUT to /ws/v1/devices/inventory/00000000-00000000-00409DFF-00000000.xml with payload

```auto

    
      first tag
      second tag
    

```

Both of the above will replace any existing tags. There is currently no way to simply add a new tag. You can check out some other examples in the programming guide under v1/devices ([http://ftp1.digi.com/support/documentation/html/90002008/Current/Default.htm#Reference/R\_ws\_v1\_devices.htm](http://ftp1.digi.com/support/documentation/html/90002008/Current/Default.htm#Reference/R_ws_v1_devices.htm))
