Configure an index
This operation specifies the pod type and number of replicas for an index. It applies to pod-based indexes only. Serverless indexes scale automatically based on usage.
PATCH
/
indexes
/
{index_name}
Authorizations
Api-Key
string
headerrequiredPath Parameters
index_name
string
requiredThe name of the index to configure.
Body
application/json
Configuration used to scale an index.
spec
object
requiredResponse
202 - application/json
The IndexModel describes the configuration and status of a Pinecone index.
name
string
requiredThe 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
dimension
integer
requiredThe dimensions of the vectors to be inserted in the index.
Required range:
1 < x < 20000
metric
enum<string>
default: cosinerequiredThe distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.
Available options:
cosine
, euclidean
, dotproduct
spec
object
requiredstatus
object
requiredhost
string
The URL address where the index is hosted.
Was this page helpful?