1.8 Alpha Api - Add Media to Region of Layout

Now that we can add media to a playlist as a widget, we need to know how to record the widget id we added so that later we can remove it from the playlist.

Looking at the API response, I only see the ability to get all the widgets assigned to a playlist, after adding media to the playlist. How do we go about getting the widget id that is created when we add the media?

We could pull the last “widgets” and assume that is the one, but I am not sure that will always returned the desired result.