Rest API assign media to region

What is the right method for assign media to a region.
I use LibraryMediaFileUpload to upload media, and LibraryMediaAdd but i need to assign to specific region.

http://xibo.org.uk/manual/en/api_layouts.html

LayoutRegionMediaAdd

i see this method but there tow parameter:
type (the type of media item being added) - all possible value for this parameter.
xlf (the xibo layout file xml representing the media to add) - all possible value for this parameter.

That is correct - the API currently only supports adding using the Media XML.

Please remember the API is a beta product - the final release will support adding using individual parameters.

There’s an example in the guide on this topic

i need know if the value of parameter - type is (image|video|flash|ppt)
for xlf - how can i represent this xml, name of tags, because i don’t i dont see nothing about in the documentation

in sample in github has webpage i think the xml is not the same for a video or image in the parameters

@alex help me please how can i use LayoutRegionMediaAdd.
The possible value for parameter type is (image|video|flash|ppt)?
The structure of xml for video and image parameter xlf - how can i represent this xml, name of tags propriets, because i don’t i dont see nothing about in the documentation i find just example of webpage.

The guide I linked you to has an example adding a video. Please refer to that