Added an httpPut function