# Stream Targets API disregards playbackssl argument

**URL:** <https://community.wowza.com/t/stream-targets-api-disregards-playbackssl-argument/47719>\
**Category:** Wowza Streaming Engine\
**Created:** [November 17, 2016, 10:44am UTC](https://community.wowza.com/t/stream-targets-api-disregards-playbackssl-argument/47719 "2016-11-17T10:44:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Punsky](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@Pavel\_Punsky](https://community.wowza.com/u/Pavel_Punsky)\
**Post date:** [November 17, 2016, 10:44am UTC](https://community.wowza.com/t/stream-targets-api-disregards-playbackssl-argument/47719/1 "2016-11-17T10:44:10Z")

</div>

I’m trying to create a new stream target to Akamai using REST API. Here is an example of API call (hosts and IDs edited):

curl --http1.1 -X POST --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ [https://someaddress.com:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/webcamrecording/pushpublish/mapentries/stream\_1](https://someaddress.com:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/webcamrecording/pushpublish/mapentries/stream_1) -d’

{

“restURI”: “[https://someaddress.com:8087/v2/servers/](https://someaddress.com:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/applications/webcamrecording/pushpublish/mapentries/stream”,

“serverName”:“_defaultServer_”,

“sourceStreamName”: “stream\_in”,

“entryName”: “stream\_1”,

“profile”: “cupertino-akamai”,

“akamai.hostId”:“someakamaihost-i”,

“application”:“live”,

“streamName”:“stream\_1”,

“akamai.streamId”:“123456”,

“playbackSSL”:“true”,

“sendSSL”:“true”

}’

It works correctly - except for “playbackSSL”:“true”. It is disregarded. As a result, on HTTPS page I get “Mixed content warning”.

If I manually edit PushPublishMap.txt file and add “playbackSSL”:“true” there it works as expected.

Anything I’m doing incorrectly? Bug in wowza?

Thanks

---

<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, 9:44pm UTC](https://community.wowza.com/t/stream-targets-api-disregards-playbackssl-argument/47719/2 "2016-12-29T21:44:26Z")

</div>

Hi,

When adding playbackSSL, you will need to add it as follows:

```auto
"extraOptions": {
    "playbackSSL":"true"
},

```

To initially get an idea of how to set an option through the REST API, you can configure it from the Manager UI at first, and then perform a GET request on the endpoint. The resulting JSON response can be copied and used as your JSON data for your POST or PUT request.

Michelle
