# Issue on Create new application from REST API

**URL:** https://community.wowza.com/t/issue-on-create-new-application-from-rest-api/45827
**Category:** Wowza Developer Dojo
**Created:** [August 23, 2015, 11:06pm UTC](https://community.wowza.com/t/issue-on-create-new-application-from-rest-api/45827 "2015-08-23T23:06:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rohit\_pp](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rohit\_pp](https://community.wowza.com/u/rohit_pp)
#### Post date: [August 23, 2015, 11:06pm UTC](https://community.wowza.com/t/issue-on-create-new-application-from-rest-api/45827/1 "2015-08-23T23:06:18Z")

</div>

Hi i am trying to Create new application using rest API, as per documentation :

curl -X POST --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ [http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive) -d’

{

“restURI”: “[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/testlive”,

“name”: “testlive”,

“appType”: “Live”,

“clientStreamReadAccess”: “\*”,

“clientStreamWriteAccess”: “\*”,

“description”: “Testing our Rest Service”,

“streamConfig”: {

“restURI”: “[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamconfiguration”,

“streamType”: “live”

}

}’

but here i am getting issue, the error comes ‘(500) Internal Server Error, The server encountered an unexpected condition which prevented it from fulfilling the request’

please let me know what i am doing wrong.

Thanks

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [August 24, 2015, 8:32am UTC](https://community.wowza.com/t/issue-on-create-new-application-from-rest-api/45827/2 "2015-08-24T08:32:29Z")

</div>

Hello Rohit.p

This curl post should work. I’d suspect that you are missing a http user header or otherwise. As requested in your ticket #138425, please supply further configuration and log information (in the ticket) to help us further debug the issue.

Thanks,

Matt
