POST
/
api
/
chunk_group
curl --request POST \
  --url https://api.trieve.ai/api/chunk_group \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "description": "All versions and colorways of the oversized t-shirt",
  "metadata": {
    "color": "black",
    "size": "large"
  },
  "name": "Versions of Oversized T-Shirt",
  "tag_set": [
    "tshirt",
    "oversized",
    "clothing"
  ],
  "tracking_id": "SNOVERSIZEDTSHIRT",
  "upsert_by_tracking_id": false
}'
{
  "created_at": "2021-01-01 00:00:00.000",
  "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
  "description": "All versions and colorways of the oversized t-shirt",
  "metadata": {
    "foo": "bar"
  },
  "name": "Versions of Oversized T-Shirt",
  "tag_set": [
    "tshirt",
    "oversized",
    "clothing"
  ],
  "tracking_id": "SNOVERSIZEDTSHIRT",
  "updated_at": "2021-01-01 00:00:00.000"
}

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json

JSON request payload to cretea a chunk_group(s)

The body is of type object.

Response

200
application/json

Returns the created chunk_group if a single chunk_group was specified or an array of all chunk_groups which were created

The response is of type object.