update example of API