POST
/
collections
Create a new collection
curl --request POST \
  --url https://{FUSION HOST}/api/collections \
  --header 'Content-Type: application/json' \
  --data '{
  "createdAt": "2023-11-07T05:31:56Z",
  "searchClusterId": "<string>",
  "commitWithin": 123,
  "features": {},
  "compositeIdSpec": {
    "routeKey1Field": "<string>",
    "routeKey1Bits": 123,
    "routeKey2Field": "<string>",
    "routeKey2Bits": 123
  },
  "solrParams": {
    "name": "<string>",
    "numShards": 123,
    "replicationFactor": 123,
    "collection.configName": "<string>"
  },
  "modifiedAt": "2023-11-07T05:31:56Z",
  "type": "DATA",
  "relatedCollectionId": "<string>",
  "metadata": {}
}'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "searchClusterId": "<string>",
  "commitWithin": 123,
  "features": {},
  "compositeIdSpec": {
    "routeKey1Field": "<string>",
    "routeKey1Bits": 123,
    "routeKey2Field": "<string>",
    "routeKey2Bits": 123
  },
  "solrParams": {
    "name": "<string>",
    "numShards": 123,
    "replicationFactor": 123,
    "collection.configName": "<string>"
  },
  "modifiedAt": "2023-11-07T05:31:56Z",
  "type": "DATA",
  "relatedCollectionId": "<string>",
  "metadata": {}
}

Query Parameters

pipelines
boolean
default:true

A boolean to indicate if pipelines should also be created. This has been deprecated in favor of 'relatedObjects'.

Body

application/json

JSON-formatted configuration values.

The body is of type object.

Response

200 - application/json

successful operation

The response is of type object.