Creates the specified index. A newly created index's initial state is CREATING. On completion of the returned google.longrunning.Operation, the state will be READY. If the index already exists, the call will return an ALREADY_EXISTS status.
During index creation, the process could result in an error, in which case the index will move to the ERROR state. The process can be recovered by fixing the data that caused the error, removing the index with delete, then re-creating the index with create.
Indexes with a single property cannot be created.
HTTP request
POST https://datastore.googleapis.com/v1/projects/{projectId}/indexes
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-09 UTC."],[[["This process details how to create a new index, which initially starts in a `CREATING` state and moves to `READY` upon completion."],["If an error occurs during creation, the index will transition to an `ERROR` state, requiring data correction and re-creation via deletion and then the creation process again."],["The creation request is made via a `POST` request to the specified URL, incorporating gRPC Transcoding syntax, and requires a project ID."],["The request body must contain an instance of `Index`, while a successful response will contain an instance of `Operation`."],["Creating an index necessitates one of two specified OAuth scopes for authorization."]]],[]]