PATCH
/
indexes
/
{index_name}

Path Parameters

index_name
string
required

The name of the index to configure.

Body

application/json

Configuration used to scale an index.

deletion_protection
enum<string>
default:
disabled

Whether deletion protection is enabled/disabled for the index.

Available options:
disabled,
enabled
spec
object
tags
object

Custom user tags added to an index. Keys must be 80 characters or less. Values must be 120 characters or less. Keys must be alphanumeric, '', or '-'. Values must be alphanumeric, ';', '@', '', '-', '.', '+', or ' '. To unset a key, set the value to be an empty string.

Response

202 - application/json

The IndexModel describes the configuration and status of a Pinecone index.

dimension
integer
required

The dimensions of the vectors to be inserted in the index.

Required range: 1 < x < 20000
host
string
required

The URL address where the index is hosted.

metric
enum<string>
default:
cosine
required

The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.

Available options:
cosine,
euclidean,
dotproduct
name
string
required

The name of the index. Resource name must be 1-45 characters long, start and end with an alphanumeric character, and consist only of lower case alphanumeric characters or '-'.

Required string length: 1 - 45
spec
object
required
status
object
required
deletion_protection
enum<string>
default:
disabled

Whether deletion protection is enabled/disabled for the index.

Available options:
disabled,
enabled
tags
object

Custom user tags added to an index. Keys must be 80 characters or less. Values must be 120 characters or less. Keys must be alphanumeric, '', or '-'. Values must be alphanumeric, ';', '@', '', '-', '.', '+', or ' '. To unset a key, set the value to be an empty string.