Update api to add format