doc update for sample api