POST
/
api
/
topic
/
clone
Clone Topic
curl --request POST \
  --url https://api.trieve.ai/api/topic/clone \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "name": "<string>",
  "owner_id": "<string>",
  "topic_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "created_at": "2021-01-01 00:00:00.000",
  "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
  "deleted": false,
  "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
  "name": "Trieve",
  "owner_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
  "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 create chat topic

owner_id
string
required

The owner_id of the topic. This is typically a browser fingerprint or your user's id. It is used to group topics together for a user.

topic_id
string<uuid>
required

The topic_id to clone from

name
string | null

The name of the topic. If this is not provided, the topic name is the same as the previous topic

Response

The JSON response payload containing the created topic

created_at
string<date-time>
required
dataset_id
string<uuid>
required
deleted
boolean
required
id
string<uuid>
required
name
string
required
owner_id
string
required
updated_at
string<date-time>
required