younifyd
Menu

Create a collection

Create a collection

POST/collections

Use it in a workflow

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

Request

Request body

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

namestringrequired

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

sourcestringrequired

The name of the index to be used as the source for the collection.

json
{
  "name": "string",
  "source": "example-source-index"
}

Response

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

namestring

The name of the collection.

sizeinteger (int64)

The size of the collection in bytes.

statusstring

The status of the collection. Possible values: `Initializing`, `Ready`, `Terminating`, or `Terminated`.

dimensioninteger (int32)

The dimension of the vectors stored in each record held in the collection.

vector_countinteger (int32)

The number of records stored in the collection.

environmentstring

The environment where the collection is hosted.

json
{
  "name": "example-collection",
  "status": "Initializing",
  "environment": "us-east1-gcp",
  "size": 10000000,
  "dimension": 1536,
  "vector_count": 120000
}

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