update api design