While yes you can create the event and then remove the event manually in webui or via API (or use changeLayout action via API), I assume you’d want that to happen automatically without manual intervention, for that to work there would need to be some sort of integration written, ie when the train arrives it would trigger the API script, if there is a system in place that could handle that, then it might be possible to integrate it with Xibo API.
Regarding API guide, documentation and those calls I’ve mentioned you can have a look here - 1.8 API Introduction (that’s only for 1.8 series).