Skip to main content

Problem

Using the new API, creating an index requires passing appropriate values into the spec parameter. Without this spec parameter, the create_index method raises the following error:
console

Solution

Set the spec parameter. For guidance on how to set this parameter, see Create an index.