ActionFinish in the API

Last mile of the ActionFinish function to the API
Yeah, it's fine as it is for now.