Skip to main content
PATCH
/
projects
/
{projectId}
/
indexes
/
{indexName}
cURL
curl --request PATCH \
  --url https://{baseUrl}/{version}/projects/{projectId}/indexes/{indexName} \
  --header 'content-type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "mappings": {}
}'
{
  "projectId": "<string>",
  "indexName": "<string>",
  "mappings": {},
  "numDocs": 123,
  "cloneSourceInfo": {
    "sourceProjectId": "<string>",
    "sourceIndexName": "<string>",
    "sourceIndexVersionId": "<string>"
  },
  "indexStatus": "CREATING",
  "indexClass": "STANDARD"
}

Headers

content-type
string
default:application/json
required
x-api-key
string
required

Project API Key.

Path Parameters

projectId
string
required

Project ID.

indexName
string
required

Index name.

Body

application/json
mappings
object
required

Response

200 - application/json

Updated index

projectId
string

Project ID.

indexName
string

Index name.

mappings
object
numDocs
integer

Total number of documents.

cloneSourceInfo
object

Clone source information.

indexStatus
enum<string>

Status

Available options:
CREATING,
ACTIVE,
DELETING
indexClass
enum<string>
default:STANDARD

Index class.

Available options:
STANDARD,
INFREQUENT_ACCESS