Is there some way to assign subplaylist widget to layout with API?

Hi,everybody
I’m using xibo-cms 2.0.4.

Is there some way to assign subplaylist widget to layout with API?

I know how to assign library media to layout by using 「/playlist/library/assign/:id」 .
But I can’t find how to assign subplaylist to layout.

Is that possible?
Or, am I forgetting somthing about that?

Similar to adding other non-media based widgets, you can call the following:
POST /api/playlist/widget/{widgetType}/{playlistId}

ie if you want to add subplaylist widget then call:
POST /api/playlist/widget/subplaylist/{playlistId}

Then you will need to edit it with:
EDIT /api/playlist/widget/{widgetId}

passing at least subPlaylistId int array, in Postman it would look something like this:

image

The spots, remainder (drop, repeat, none) and arrangement (even, roundrobin, none) are all optional settings - we will make sure to better show that in the API documentation with the next release.

Hi,Peter.
Thank you for comment.

I confirmed the behavior the method that you said enabled it.
And it worked!

Thank you for quick and detailed answer.