Logo
Search
Docs

Rename chat

PATCH https://app.sulus.ai/api/v1/agents/{agent_id}/chats/{chat_id}

Rename a chat (PUT also accepted)

Authentication

Send a bearer token created on your dashboard's Developer page:

Authorization: Bearer <YOUR_API_KEY>

Path parameters

agent_id string Required

The agent id (UUID).

Validation: uuid (route-constrained)
Stored in ai_projects.uid
chat_id string Required

The chat id (UUID).

Validation: uuid (route-constrained)
Stored in ai_chats.uid

Request body

title string Required

New chat title.

Validation: required|string|max:255
Stored in ai_chats.title

Errors

StatusMeaningBody
404 Agent not found, or you do not have access to it
404 Chat not found in this agent, or it was created by a different token
422 Validation failed {"message":"…","errors":{"field":["…"]}}
401 Missing or invalid bearer token
403 Feature ai_chat not enabled for the account
curl --request PATCH \
  --url https://app.sulus.ai/api/v1/agents/{agent_id}/chats/{chat_id} \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --header 'Content-Type: application/json' \
  --data '{"title": "Pricing questions"}'
import requests

url = "https://app.sulus.ai/api/v1/agents/{agent_id}/chats/{chat_id}"
headers = {"Authorization": "Bearer <YOUR_API_KEY>"}
payload = {"title": "Pricing questions"}

response = requests.patch(url, json=payload, headers=headers)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	url := "https://app.sulus.ai/api/v1/agents/{agent_id}/chats/{chat_id}"
	payload := strings.NewReader(`{"title": "Pricing questions"}`)
	req, _ := http.NewRequest("PATCH", url, payload)
	req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")
	req.Header.Add("Content-Type", "application/json")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
Response 200
{
    "object": "chat",
    "data": {
        "id": "b2c3d4e5-0000-4000-8000-000000000002",
        "object": "chat",
        "title": "Pricing questions",
        "model": "sulus-chat-1",
        "provider": "sulus-primary",
        "last_message_at": "2026-07-30T14:20:11.000000Z",
        "created_at": "2026-07-30T14:12:40.000000Z"
    }
}