Update a conversation thread
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/threads/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_archived": true
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/threads/{id}"
payload = {
"name": "<string>",
"is_archived": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', is_archived: true})
};
fetch('https://paradigm.lighton.ai/api/v3/threads/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"ml_model": "<string>",
"ml_model_name": "<string>",
"agent_id": 123,
"agent_name": "<string>",
"creation_source": "<string>",
"is_read": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_ephemeral": true,
"is_archived": true,
"tool_parameters": "<unknown>",
"object": "thread"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Threads
Update a conversation thread
Update a thread by ID. Use query parameters ‘anonymize=true’ to anonymize an ephemeral thread or ‘cancel=true’ to cancel the current turn processing.
PATCH
/
api
/
v3
/
threads
/
{id}
Update a conversation thread
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/threads/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"is_archived": true
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/threads/{id}"
payload = {
"name": "<string>",
"is_archived": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', is_archived: true})
};
fetch('https://paradigm.lighton.ai/api/v3/threads/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"status": "<string>",
"ml_model": "<string>",
"ml_model_name": "<string>",
"agent_id": 123,
"agent_name": "<string>",
"creation_source": "<string>",
"is_read": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"is_ephemeral": true,
"is_archived": true,
"tool_parameters": "<unknown>",
"object": "thread"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Set to true to anonymize an ephemeral thread
Set to true to cancel the current turn processing
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Thread updated successfully or action performed
Global tool-specific parameters applied to all turns in this thread (e.g., document_search.top_k). Can be overridden at turn level.