update API model