Add response data to put and post handlers