Actions37
- 对话 Actions
- 知识库 Actions
- 集合 Actions
- 数据 Actions
- 应用 Actions
集合 → 获取集合详情
AI-generatedSummary
Fetches the details of a single FastGPT knowledge-base collection by ID via GET /core/dataset/collection/detail, and throws a node error if the API reports a failure.
Inputs
- 集合ID (id) — ID of the collection to look up. Sent as the
idquery parameter. It is not marked required in the UI, but the lookup needs it. - 父级目录ID (datasetParentId) — Folder ID copied from the FastGPT browser URL. Declared as a body field (
parentId). Its main use is narrowing the knowledge-base dropdown, which loads datasets under this parent. - 选择知识库 (datasetKnowledgeId) — Dropdown of knowledge bases (type 'dataset') loaded from /core/dataset/list for the chosen parent folder. Declared as body field
datasetId. A GET request normally carries no body, so it may have no effect on the lookup. - Request Options — Optional node settings: batching (items per batch, interval), ignore SSL issues, proxy URL, and timeout in ms (default 10000).
Output shape
The FastGPT API response for the collection, passed through unchanged as the node's output item.
The node sets ignoreHttpStatusErrors and runs a post-receive check. It throws a NodeApiError if the HTTP status is 4xx/5xx or the response body
codeis not 200. The message comes from the bodymessage. Authentication uses the fastGPTApi credential and its baseUrl.
Examples
Example 1: Check the status and metadata of a known collection
Resource: 集合; Operation: 获取集合详情; 集合ID: an ID from a prior 获取集合列表 step, e.g. {{$json.id}}.
Example 2: Look up a collection and select its knowledge base from the dropdown
Set 父级目录ID if the dataset sits in a folder, pick the dataset in 选择知识库, then enter 集合ID.