I'm trying to update a TTL collection with the PyMongo. Trying to run this I get 'failed no such cmd: index'

```
client.db.command({'collMod': url,
                    'index': {'keyPattern': {'dateCreated':1},
                           'expireAfterSeconds': 3600}})

```

anyone shine some light on what I'm doing wrong?