updating api method doc