update API definition