# load smil into application via Api REST

**URL:** <https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273>\
**Category:** Hire a Consultant\
**Created:** [November 5, 2018, 7:42pm UTC](https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273 "2018-11-05T19:42:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Washosky](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mike\_Washosky](https://community.wowza.com/u/Mike_Washosky)\
**Post date:** [November 5, 2018, 7:42pm UTC](https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273/1 "2018-11-05T19:42:41Z")

</div>

Hi all.

Someone has some example of how to assign a smil to an application via api rest

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 6, 2018, 6:41pm UTC](https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273/2 "2018-11-06T18:41:04Z")

</div>

Hello @Mike Washosky, I will share some docs with you on how to do this with examples. I hope this helps. If you still need a consultant to help you, please leave me a comment here and I can send you a list.

1. [https://www.wowza.com/docs/smil-files-query-examples](https://www.wowza.com/docs/smil-files-query-examples)

2. [https://www.wowza.com/docs/how-to-query-wowza-rest-api](https://www.wowza.com/docs/how-to-query-wowza-rest-api)

3. I recommend you try this- it is very helpful to access examples as well.

[https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api](https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api)

---

<div class="post-metadata">

**Author:** ![Mike\_Washosky](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mike\_Washosky](https://community.wowza.com/u/Mike_Washosky)\
**Post date:** [November 6, 2018, 6:49pm UTC](https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273/3 "2018-11-06T18:49:57Z")

</div>

Thx Rose, but still have a error msg

{“message”:“The request requires user authentication”,“success”:false,“code”:“401”,“wowzaServer”:“4.7.6”}

This is my line

curl --digest -u ‘user:pass’ -X PUT -H ‘Accept:application/json; charset=utf-8’ -H ‘Content-type:application/json; charset=utf-8’ [http://my-server-ip:8087/v2/servers/](http://my-server-ip:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/some-app-name/smilfiles/live.smil/actions/connect?connectAppName=some-app-name≈pInstance=_definst_&mediaCasterType=liverepeater

I put the corret user and pass, but still show me that msg 😕

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [November 6, 2018, 9:29pm UTC](https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273/4 "2018-11-06T21:29:23Z")

</div>

Sorry to hear that. I would suggest submitting a support ticket first to see if our engineers can test for an problem. You can do that here:

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)

---

<div class="post-metadata">

**Author:** ![Mike\_Washosky](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mike\_Washosky](https://community.wowza.com/u/Mike_Washosky)\
**Post date:** [November 7, 2018, 6:31pm UTC](https://community.wowza.com/t/load-smil-into-application-via-api-rest/52273/5 "2018-11-07T18:31:58Z")

</div>

thx Rose, I’m going to open a ticket then
