Problem creating date based index with CURL

Trying to create a date based index with curl, using the command line.
The command prompt does not return.

Here is what I am trying:

curl -XPOST 'http://localhost:9200/member_history-%{+YYYY.MM.dd}' -d '{"mappings":{"ats":{"properties":{"member type":{"type":"string","index":"not_analyzed"}}}}}'

I have no problems doing this:

curl -XPOST 'http://localhost:9200/member_history' -d '{"mappings":{"ats":{"properties":{"member type":{"type":"string","index":"not_analyzed"}}}}}'

CURL doesnt like this part:
'-%{YYYY.MM.dd}'

curl doesn't know how to convert that into a number. You need to pass in the date.