Added put and checking logic
fixed the put url