Wowza Community

What does error mean with swagger ui

Hello, I am trying to develop a web app using wowza and the developer license. Right now I am trying to figure out the curl call to add source authentication so that my users would be able to stream. Looking through the rest api I have found the post publishers section, but when I try to test it out I get an error 500.

<code>"wowzaServer": "4.6.0",
  "success": false,
  "code": "500",
  "message": "The server encountered an unexpected condition which prevented it from fulfilling the request"<br>

That looks like an error in the REST API command sent. Please post the exact command you have used in curl.

I didn’t really make a curl call, I just used the swagger ui and put in the body of that particular post

{
“password”: “password”,
“name”: “daniel”,
“serverName”: “defaultServer
“description”: “something”,
“saveFieldList”: [
“”
],
“version”: “4.6.0”
}

As it turns out it was just a matter of making sure that if you use the model shema option you then need to make sure you change the parameter content type to application/json.