Rename / star / delete a chat
rename (title), star (on; toggles when omitted), delete (the chat is removed permanently with its questions and answers).
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope:
crm.writePath parameters
idintegerrequiredChat id.
actionstringrequiredAction.
Values
renamestardeleteBody application/json
titlestringoptionalNew title (
rename).onbooleanoptionalStar (
star).Errors
| HTTP | error | Meaning |
|---|---|---|
400 | invalid | Missing or invalid field (`message` explains). |
404 | not_found | Record not found. |
Request
curl -X POST https://ornek.solk.app/api/v1/chats/4/rename \
-H "Authorization: Bearer $SOLK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Geciken aksiyonlar"
}'const res = await fetch("https://ornek.solk.app/api/v1/chats/4/rename", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"title": "Geciken aksiyonlar"
}),
});
const data = await res.json();import os, requests
r = requests.post(
"https://ornek.solk.app/api/v1/chats/4/rename",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
json={
"title": "Geciken aksiyonlar"
},
)
print(r.json())Response
{
"ok": true,
"title": "Geciken aksiyonlar"
}Example responses were captured from a v51 installation running sample data; lists are shortened to two items.