Code to UPDATE Device information using PUT