Is it possible to use the REST API to create multiple Wowza objects using a single POST request? I’ve looked around for examples or documentation and I have tried some test calls, but I have been unsuccessful. If possible, I’d rather send 1 request with an array of objects to the server rather than looping through my data and sending another POST request.
If it matters, I am interested in creating multiple stream files or multiple transcoder templates.
Here is an example I tried:
curl -H "Content-Type: application/json" -X POST "http://wowza:port/v2/servers/{servername}/vhosts/{vhost}/applications/{applicationname}/streamfiles" -d
'[{
"name": "stream_file1",
"uri": "uri://1"
},
{
"name": "stream_file1",
"uri": "uri://1"
},
{
"name": "stream_file1",
"uri": "uri://1"
}]'
Wowza sends a malformed syntax response. Is there something I’m missing in my data? is something like this even possible?