younifyd
Menu

Configure an index

Configure an index

PATCH/indexes/{index_name}

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Configure an index action (under Indexes).
  3. Fill in the fields below, then reference the result from later steps as {{configureAnIndex.response.data}}.

Request

Path parameters

index_namestringrequired

The name of the index to configure.

Request body

Enter the body as JSON in the step's Body field.

deploymentobject

Deployment update parameters for pod-based indexes. Specify `replicas`, `pod_type`, or both. Deployment type, cloud/region, and environment cannot be changed after creation. Do not include a `deployment_type` field; it is not accepted.

replicasinteger (int32)

The number of replicas. Replicas duplicate your index. They provide higher availability and throughput. Replicas can be scaled up or down as your needs change.

Default 1

pod_typestring

The type of pod to use. One of `s1`, `p1`, or `p2` appended with `.` and one of `x1`, `x2`, `x4`, or `x8`.

Default "p1.x1"

schemaobject

Schema updates to apply to an existing index. Only `semantic_text` field parameters, on a legacy integrated index created via create-for-model, can be updated after index creation. The model itself cannot be changed once set; only `write_parameters` and `read_parameters` may be updated if the model stays the same. The `embed` and `sparse_embed` configurations of a `string` field are fixed at creation and cannot be updated.

fieldsobjectrequired

A map of semantic text field names to their updated parameters. Only fields of type `semantic_text` may be specified, and only one field per request.

read_capacityoneOf

Read capacity changes for an existing managed or BYOC index. Switch to `OnDemand`, or set `Dedicated` and change any subset of `node_type`, `scaling`, and `manual` replicas/shards; fields you omit keep their current value.

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

json
{
  "deployment": {
    "replicas": 4
  },
  "schema": {
    "fields": {
      "content": {
        "read_parameters": {
          "input_type": "query",
          "truncate": "NONE"
        },
        "type": "semantic_text",
        "write_parameters": {
          "input_type": "passage"
        }
      }
    }
  },
  "read_capacity": null,
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  },
  "deletion_protection": "disabled"
}

Response

Returns 200 with an object. Read it in later steps with {{configureAnIndex.response.data.<field>}}.

namestring

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 '-'.

hoststring

The URL address where the index is hosted.

private_hoststring

The private endpoint URL of an index.

statusobject

The current status of the index.

readybooleanrequired

Whether the index is ready for use.

statestringrequired

The current state of the index. Possible values: `Initializing`, `InitializationFailed`, `Failed`, `ScalingUp`, `ScalingDown`, `ScalingUpPodSize`, `Terminating`, `Ready`, or `Disabled`.

deploymentoneOf

The deployment configuration of a Pinecone index. The `deployment_type` field indicates which infrastructure model the index uses. - `pod`: Dedicated pod-based infrastructure. Suitable for workloads that require predictable performance. - `managed`: Serverless infrastructure managed by Pinecone, including full-text search indexes. Scales automatically; billed per usage. - `byoc`: Bring-your-own-compute. Runs in customer-managed infrastructure.

read_capacityoneOf

Response containing read capacity configuration

source_collectionstring

The name of the collection this index was created from, if any.

source_backup_idstring

The ID of the backup this index was restored from, if any.

cmek_idstring

The ID of the customer-managed encryption key (CMEK) used to encrypt this index, if any.

schemaobject

The schema of a Pinecone index. The schema defines the typed fields that documents in the index can contain, including vector fields, string fields searched by full-text search or by embeddings, and metadata fields.

fieldsobjectrequired

A map of field names to their configurations. Indexes that are served by the vectors API — created with the reserved `_values` / `_sparse_values` schema, or created by an earlier API version from `dimension`, `metric`, and `vector_type` — report their vector fields under the reserved names `_values` (dense) and `_sparse_values` (sparse), and any metadata fields configured for filtering as legacy fields carrying only `filterable`. Dense vectors-API indexes always report both `_values` and `_sparse_values`, regardless of how they were created.

tagsobject

Custom user tags added to an index, at most 20 per index. Keys must be 80 characters or less and alphanumeric, '_', or '-'. Values must be 120 characters or less and consist of printable ASCII characters or spaces. To unset a key, set the value to be an empty string. `null` in responses when the index has no tags.

deletion_protectionstring

Whether [deletion protection](http://docs.pinecone.io/guides/manage-data/manage-indexes#configure-deletion-protection) is enabled/disabled for the index. Possible values: `disabled` or `enabled`.

Default "disabled"

json
{
  "name": "example-index",
  "host": "semantic-search-c01b5b5.svc.us-west1-gcp.pinecone.io",
  "status": {
    "ready": true,
    "state": "Ready"
  },
  "deployment": null,
  "schema": {
    "fields": {
      "body": {
        "embed": {
          "dimension": 1024,
          "metric": "cosine",
          "model": "llama-text-embed-v2"
        },
        "full_text_search": {
          "language": "en",
          "stemming": false,
          "stop_words": false
        },
        "sparse_embed": {
          "model": "pinecone-sparse-english-v0"
        },
        "store_text": true,
        "type": "string"
      },
      "title": {
        "full_text_search": {
          "language": "en",
          "stemming": false,
          "stop_words": false
        },
        "store_text": true,
        "type": "string"
      }
    }
  },
  "deletion_protection": "disabled",
  "private_host": "semantic-search-c01b5b5.svc.private.us-west1-gcp.pinecone.io",
  "read_capacity": null,
  "source_collection": "movie-embeddings",
  "source_backup_id": "670e8400-e29b-41d4-a716-446655440000",
  "cmek_id": "arn:aws:kms:us-east-1:123456789012:key/mrk-abc123",
  "tags": {
    "tag0": "val0",
    "tag1": "val1"
  }
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.