Update api.yml

Fix afterModel documentation