Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
对话 → 修改历史记录标题
AI-generatedSummary
Renames an existing FastGPT chat history by sending a PUT to /core/chat/history/updateHistory with the app ID, chat ID and a new custom title.
Inputs
- 应用ID (updateHistoryAppId) (required) — FastGPT App ID that owns the chat. Sent in the request body as appId.
- 历史记录ID (updateHistoryChatId) (required) — The chatId of the history record to rename. Sent in the body as chatId.
- 自定义标题 (updateHistoryCustomTitle) (required) — The new custom title for the conversation. Sent in the body as customTitle.
- Request Options — Optional node settings: batching (items per batch and interval), ignore SSL issues, proxy, and timeout (default 10000 ms).
Output shape
The parsed JSON response body from the FastGPT API, as one output item per input item.
The base URL and credentials come from the fastGPTApi credential. The node ignores HTTP status errors at the request level, then checks the response. It throws a NodeApiError if the HTTP status is 4xx or 5xx, or if the body's code field is set and is not 200. The exact response fields are not defined in the source.
Examples
Example 1: Rename a conversation after the user supplies a topic.
Resource: 对话; Operation: 修改历史记录标题; 应用ID = your App ID; 历史记录ID = {{$json.chatId}}; 自定义标题 = 'Refund inquiry'.