update api definition