# Web Service API for "Add/Remove Devices" to your iDigi account?

**URL:** https://forums.digi.com/t/web-service-api-for-add-remove-devices-to-your-idigi-account/3196
**Category:** Device Manager
**Created:** [July 16, 2012, 8:45pm UTC](https://forums.digi.com/t/web-service-api-for-add-remove-devices-to-your-idigi-account/3196 "2012-07-16T20:45:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vivek](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@vivek](https://forums.digi.com/u/vivek)
#### Post date: [July 16, 2012, 8:45pm UTC](https://forums.digi.com/t/web-service-api-for-add-remove-devices-to-your-idigi-account/3196/1 "2012-07-16T20:45:19Z")

</div>

Hi,  
I have been using the iDigi Manager PRO web UI to add/remove devices from my account. Is there a web api interface to do this programmatically? Any help would be appreciated.

Thanks,  
Vivek

---

<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: [July 16, 2012, 9:58pm UTC](https://forums.digi.com/t/web-service-api-for-add-remove-devices-to-your-idigi-account/3196/2 "2012-07-16T21:58:37Z")

</div>

Yep, you can find the iDigi Web Services Programming Guide after logging into by clicking Help & Downloads \> Documentation in the upper right hand corner. You can check out section 8.1 for info on provisioning a device.

In short, you do an HTTP POST to /ws/DeviceCore, with an XML payload like:

```auto

    00000000-00000000-00000000-00000000

```

or if you prefer specifying a mac address,

```auto
 
  00:00:00:00:00:00 

```

Additionally, you can check out the web services console tab. The first category of examples includes DeviceCore, with one example relating to provisioning.

Chris

---

<div class="post-metadata">

### Author: ![vivek](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@vivek](https://forums.digi.com/u/vivek)
#### Post date: [July 27, 2012, 5:42pm UTC](https://forums.digi.com/t/web-service-api-for-add-remove-devices-to-your-idigi-account/3196/3 "2012-07-27T17:42:22Z")

</div>

If I remove and re-add a device. I see that it loses all the attributes such as unit / multiplier / divisor etc from the Smart Energy profile.  
I can’t get these back unless I go to iDigi pro and click on “Read Attribute” button for each value individually.  
Can someone explain what is going on? Does the server have to read these values back from the device? Why doesn’t it happen when I “Add device” ?  
Is there an API to do the equivalent of “Read Attribute” for all of these attributes after “Add a device” ?

Thanks!  
Vivek
