Creates an index for a data collection.
The index can't be used immediately, as the process of generating the index takes time. You can check whether an index is ready by calling List Indexes.
Note that when an index fails to create, the failed index still occupies a slot. To remove the failed index and free up the slot for a new index, call Drop Index.
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
ID of the data collection for which to generate the index.
Details of the index to be created.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.