Can't update Trancoder configuration via RESTful API

I’ve used this api follow to documentation which is updating configuration of Transcoder on some application.

I want to change my options through the REST-API then it should be changed on my dashboard as like below:

Transcoder Options

[x]Match source stream name to template name

Fallback Template

my-template

Queried sample :

PUT http://192.168.10.67:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/zxdfcx/transcoder content-type: application/json; charset=utf-8 Accept: application/json; charset=utf-8 
{ "profileDir": "", "licensed": true, "templates": { "vhostName": "", "templates": [ { "id": "Passthrough", "href": "http://119.205.236.242:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/zxdfcx/transcoder/templates/Passthrough" } ], "serverName": "", "saveFieldList": [ "" ], "version": "" }, "available": true, "serverName": "_defaultServer_", "templateDir": "${com.wowza.wms.context.VHostConfigHome}/transcoder/templates", "version": "", "createTemplateDir": false, "licenses": 0, "liveStreamTranscoder": "", "templatesInUse": "Passthrough", "licensesInUse": 0, "saveFieldList": [ "" ] }

Especially, field templatesInUse section didn’t affect to my application.

Hi, your templatesInUse does not look to be valid. Do try the following command instead:

curl -X PUT --header "Accept:application/json; charset=utf-8" --header "Content-type:application/json; charset=utf-8"  http://192.168.10.67:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/zxdfcx/transcoder -d '{ "templatesInUse": "Passthrough.xml" }'

You may also want to edit your post to mask any public IPs.

Michelle

Thanks for your quick response.Michelle

Transcoding opotion and fallback Templete section are changed correctly. Great !!!

However, Section of Transcoder status has been still “Not Enable”. Please let me know what I’m missed.

Regards,

Jaster

PUT http://192.168.10.67:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/zxdfcx/transcoder
content-type: application/json; charset=utf-8
Accept: application/json; charset=utf-8

{
  "licensed": false,
  "licensesInUse": 0,
  "available": true,
  "templatesInUse": "Passthrough.xml"  
}

Jaster