# Loading template command not working for topbeat

**URL:** https://discuss.elastic.co/t/loading-template-command-not-working-for-topbeat/146406
**Category:** Beats
**Created:** [August 28, 2018, 5:33pm UTC](https://discuss.elastic.co/t/loading-template-command-not-working-for-topbeat/146406 "2018-08-28T17:33:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Moreno](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@David\_Moreno](https://discuss.elastic.co/u/David_Moreno)
#### Post date: [August 28, 2018, 5:33pm UTC](https://discuss.elastic.co/t/loading-template-command-not-working-for-topbeat/146406/1 "2018-08-28T17:33:57Z")

</div>

Inputting this in my ELK server:

`curl -XPUT 'http://localhost:9200/_template/topbeat' -d@topbeat.template.json`

I get:  
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}

Any ideas why the command is wrong?

---

<div class="post-metadata">

### Author: ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)
#### Post date: [August 28, 2018, 6:42pm UTC](https://discuss.elastic.co/t/loading-template-command-not-working-for-topbeat/146406/2 "2018-08-28T18:42:39Z")

</div>

Try adding `-H 'Content-Type: application/json'` as another option to your `curl` command.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 25, 2018, 8:51pm UTC](https://discuss.elastic.co/t/loading-template-command-not-working-for-topbeat/146406/3 "2018-09-25T20:51:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
