Problem
Using the new API, creating an index requires passing appropriate values into thespec parameter. Without this spec parameter, the create_index method raises the following error:
console
Solution
Set thespec parameter. For guidance on how to set this parameter, see Create an index.