# Create .smil file in multi level subfolders under content folder using REST api

**URL:** <https://community.wowza.com/t/create-smil-file-in-multi-level-subfolders-under-content-folder-using-rest-api/47752>\
**Category:** Wowza Developer Dojo\
**Created:** [November 24, 2016, 12:00pm UTC](https://community.wowza.com/t/create-smil-file-in-multi-level-subfolders-under-content-folder-using-rest-api/47752 "2016-11-24T12:00:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Hoque](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Mohammad\_Hoque](https://community.wowza.com/u/Mohammad_Hoque)\
**Post date:** [November 24, 2016, 12:00pm UTC](https://community.wowza.com/t/create-smil-file-in-multi-level-subfolders-under-content-folder-using-rest-api/47752/1 "2016-11-24T12:00:02Z")

</div>

Hi All,

I am using wowza REST api for creating .smil file.

[POST Method] [http://localhost:8087/v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/smilfiles/{smilfileName}](http://localhost:8087/v2/servers/%7BserverName%7D/vhosts/%7BvhostName%7D/applications/%7BappName%7D/smilfiles/%7BsmilfileName%7D)

But I need to create the .smil file under subfolder of content folder. subfolder can vary for different .smil file creation. I want to pass subfolder info as a parameter. What’s the way I can do that.

And if I need to go through ABR, then I need to create .smil for for each video source file? Like if I upload 5 video source files I have to create 5 .smil files?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [December 29, 2016, 10:30pm UTC](https://community.wowza.com/t/create-smil-file-in-multi-level-subfolders-under-content-folder-using-rest-api/47752/2 "2016-12-29T22:30:59Z")

</div>

Hi,

Unfortunately, this endpoint does not support subfolders. You will need to use operating system file commands to move the generated SMIL file to a sub-folder.

For a group of ABR streams, you should use only one SMIL file that includes all the renditions of that ABR stream. For example, if you have three renditions of sample.mp4 (sample\_160p.mp4, sample\_360p.mp4, and sample\_480p.mp4), then you would need only one SMIL file (sample.smil) that has video source renditions for each one. Your playback URL would then only refer to sample.smil.

Michelle
