Setting mediaId through API in creating a schedule with an event type of Image/Video


Hello Xibo fam, I think the schedule of event type Video/Image is new in Xibo v4, may I know how do we set reference to the intended video/image media file while creating a schedule of this particular event type through Xibo Api?

Hi @yuan_eric,

For the Video/Image event, the eventTypeId is 7. It is not really new, it was just called Media Library before and renamed to Video/Image for clarity.

To point it to the media you want, just pass the media ID into mediaId when creating the schedule. That is the field used for selecting the image or video.

Also, I noticed that the API docs for this endpoint do not currently list mediaId in the parameters. I’ll raise this so the team can update it.

Just a quick update. I’ve now created a GitHub issue for this so it can be handled properly: