Update a conversation turn in a thread
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/threads/{id}/turns/{turn_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://paradigm.lighton.ai/api/v3/threads/{id}/turns/{turn_id}"
payload = {}
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({})
};
fetch('https://paradigm.lighton.ai/api/v3/threads/{id}/turns/{turn_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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 turn in a thread
Update a turn by ID. Use query parameter ‘action’ to specify the action: ‘like_dislike’ to send like/dislike feedback, ‘copied’ to mark as copied, or ‘flag’ to create a flag.
PATCH
/
api
/
v3
/
threads
/
{id}
/
turns
/
{turn_id}
Update a conversation turn in a thread
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/threads/{id}/turns/{turn_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://paradigm.lighton.ai/api/v3/threads/{id}/turns/{turn_id}"
payload = {}
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({})
};
fetch('https://paradigm.lighton.ai/api/v3/threads/{id}/turns/{turn_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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.
Query Parameters
The action to perform: 'like_dislike', 'copied', or 'flag'
Available options:
copied, flag, like_dislike Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
- Option 1
- CreateAnswerFlagRequest
Response
Action performed successfully