POST
/
v1
/
threads
/
{threadId}
curl --request POST \
  --url https://studio.tune.app/v1/threads/{threadId} \
  --header 'Content-Type: application/json' \
  --header 'X-Tune-Key: <api-key>' \
  --data '{
  "title": "<string>",
  "metadata": {}
}'
{
  "id": "<string>",
  "object": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "metadata": {},
  "title": "<string>",
  "toolResources": {
    "codeInterpreter": {
      "fileIds": [
        "<string>"
      ]
    },
    "fileSearch": {
      "vectorStoreIds": [
        "<string>"
      ],
      "vectorStores": [
        {
          "fileIds": [
            "<string>"
          ],
          "metadata": {}
        }
      ]
    }
  }
}

Authorizations

X-Tune-Key
string
header
required

Tune API Keys are the preferred way to authenticate with the API. You can create an API Key from your Tune Studio Profile → 'Access Keys' (in sidebar)

Path Parameters

threadId
string
required

ID of the thread to be modified.

Body

application/json
title
string

Title of the thread.

metadata
object

Metadata to store additional information in key-value pair.

Response

200
application/json
A successful response.
id
string

The ID of the thread.

object
string

"thread".

createdAt
string

The time the thread was created.

metadata
object

Metadata for the thread key-value pairs.

title
string

The title of the thread.

toolResources
object