How to update the template as once?

i use curl -xget http://xx.xx.xxx:9200/_template but can't put this use curl -xput .