How can I update API Definition from changes to collection?

I’m new and found the update collection after changing the API very useful. Can the equivalent be done in reverse? After changing the collection, updating the definition.