Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
对话 → 修改历史记录置顶状态
AI-generatedSummary
Pins or unpins a FastGPT chat history by sending a PUT request to /core/chat/history/updateHistory with the app ID, chat ID and a top flag.
Inputs
- 应用ID (topHistoryAppId) (required) — FastGPT App ID that owns the chat. Sent in the body as appId.
- 历史记录ID (topHistoryChatId) (required) — chatId of the history record to change. Sent in the body as chatId.
- 置顶 (topHistoryTop) (required) — Boolean, default true. true pins the chat and false unpins it. Sent in the body as top.
- Request Options — Optional node settings: batching (items per batch and interval), ignore SSL issues, proxy URL, and timeout in ms (default 10000).
Output shape
The JSON response body from the FastGPT API for the update call, returned as the node's output item.
Errors are raised as a NodeApiError. This happens on any HTTP 4xx or 5xx status, or when the response body's code is not 200. The error message comes from the body's message field. The node base URL and API key come from the fastGPTApi credential. The exact response fields are not defined in the node source.
Examples
Example 1: Pin an important support conversation so it stays at the top of the app's history list.
应用ID=
Example 2: Unpin a chat after the issue is resolved.
应用ID=