Streaming Engine REST API Publish a video file as a live stream

Hi i saw this in the wiki: wowza. com/docs/how-to-publish-a-video-file-as-a-live-stream

but i was wondering how could i publish it using rest api. I already can publish applications and use webrtc, rtmp as a source but was wondering how to put a url with a mp4 to be streamed as it was a live. i Saw the wiki but i need it to be created with the rest api.

The example there is for a very basic file streaming.
You may want to check out the following module that allows you to create schedules with multiple mp4 files, as well as load and unload those schedules.
https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher