# Can't update Trancoder configuration via RESTful API

**URL:** https://community.wowza.com/t/cant-update-trancoder-configuration-via-restful-api/50934
**Category:** Wowza Developer Dojo
**Tags:** transcoder, recording
**Created:** [March 19, 2018, 4:01pm UTC](https://community.wowza.com/t/cant-update-trancoder-configuration-via-restful-api/50934 "2018-03-19T16:01:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Leo\_Chun](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@Leo\_Chun](https://community.wowza.com/u/Leo_Chun)
#### Post date: [March 19, 2018, 4:01pm UTC](https://community.wowza.com/t/cant-update-trancoder-configuration-via-restful-api/50934/1 "2018-03-19T16:01:51Z")

</div>

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 :

```auto
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.

---

<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: [March 20, 2018, 7:06am UTC](https://community.wowza.com/t/cant-update-trancoder-configuration-via-restful-api/50934/2 "2018-03-20T07:06:20Z")

</div>

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

```auto
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

---

<div class="post-metadata">

### Author: ![Leo\_Chun](https://avatars.discourse-cdn.com/v4/letter/l/a88e57/32.png) [@Leo\_Chun](https://community.wowza.com/u/Leo_Chun)
#### Post date: [March 21, 2018, 7:35am UTC](https://community.wowza.com/t/cant-update-trancoder-configuration-via-restful-api/50934/3 "2018-03-21T07:35:25Z")

</div>

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

```auto
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"  
}

```

![](https://www.wowza.com/community/storage/temp/1373-%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA-2018-03-21-%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE-43218.png)Jaster
