update API examples