PUT
/
collections
/
{collection}
Create or update a collection
curl --request PUT \
  --url https://{FUSION HOST}/api/collections/{collection} \
  --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": {}
}

Headers

If-Match
string
default:"-1"

An optional tag to match against the specified blob.

Path Parameters

collection
string
required

The name of a collection.

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.