update api reqeust