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": {}
}
Create a new data collection or update an existing one.
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": {}
}
An optional tag to match against the specified blob.
The name of a collection.
JSON-formatted configuration values.
The body is of type object
.
successful operation
The response is of type object
.
Was this page helpful?