Creating index without id throws an error

The error says that I'm using a deprecated version of indexing. Can someone please point me to the right format of index?

PUT /_index/_type

I just did the above and it says 404, I must use POST