Mappings, templates and default in a single file. How to update this information?

I've created a single file containg all type mappings, templates and default configurations.

I'm trying to PUT it using curl command, however It dumps me a error:

{"error":"ActionRequestValidationException[Validation Failed: 1: mapping type is missing;]","status":400}[

Is it possible to update all od this using a command line like:

curl -XPUT 'http://ESNODE01:9201/living/_mappings' -d @default_mappings.json

Thanks for all.

I don't think there is any way to do that. Maybe an alternative would be to create an empty index with these parameters, snapshot it, and then restore it whenever you need to create a new index with these parameters?