How to add a device via rest API into Spectrum