update device GET to POST