cURL
curl --request POST \ --url https://{baseUrl}/{version}/projects/{projectId}/indexes \ --header 'content-type: <content-type>' \ --header 'x-api-key: <x-api-key>' \ --data ' { "indexName": "<string>", "mappings": {}, "indexClass": "STANDARD", "sourceProjectId": "<string>", "sourceIndexName": "<string>", "sourceProjectApiKey": "<string>" } '
{ "projectId": "<string>", "indexName": "<string>", "mappings": {}, "numDocs": 123, "cloneSourceInfo": { "sourceProjectId": "<string>", "sourceIndexName": "<string>", "sourceIndexVersionId": "<string>" }, "indexStatus": "CREATING", "indexClass": "STANDARD" }
Create an index.
Project API Key.
Project ID.
Index name must be unique within a project and the supported maximum length is 52.
Show child attributes
Index class.
STANDARD
INFREQUENT_ACCESS
Created index
Index name.
Total number of documents.
Clone source information.
Status
CREATING
ACTIVE
DELETING