Some changes to the api for put