mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
docs: metadata-api-term-changes
This commit is contained in:
@@ -681,26 +681,24 @@ Response example:
|
||||
}
|
||||
```
|
||||
|
||||
#### Modify Metadata Fields in the Knowledge Base
|
||||
#### Update Metadata Fields in the Knowledge Base
|
||||
|
||||
Request example:
|
||||
|
||||
```bash
|
||||
curl --location --request PATCH 'https://api.dify.ai/v1/datasets/{dataset_id}/metadata/{metadata_id}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Authorization: Bearer {api_key}' \
|
||||
--data '{
|
||||
"name":"test"
|
||||
}'
|
||||
--header 'Content-Type: application/json'\
|
||||
--data-raw '{"name": "test"}'
|
||||
```
|
||||
|
||||
Response example:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "9f63c91b-d60e-4142-bb0c-c81a54dc2db5",
|
||||
"type": "string",
|
||||
"name": "test"
|
||||
"id": "abc",
|
||||
"type": "string",
|
||||
"name": "test",
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -572,7 +572,6 @@ curl --location 'https://api.dify.ai/v1/datasets/{dataset_id}/metadata' \
|
||||
|
||||
出力例:
|
||||
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "9f63c91b-d60e-4142-bb0c-c81a54dc2db5",
|
||||
@@ -581,27 +580,24 @@ curl --location 'https://api.dify.ai/v1/datasets/{dataset_id}/metadata' \
|
||||
}
|
||||
```
|
||||
|
||||
### ナレッジベースのメタデータフィールドを修正する
|
||||
### ナレッジベースのメタデータフィールドを更新する
|
||||
|
||||
入力例:
|
||||
|
||||
```bash
|
||||
curl --location --request PATCH 'https://api.dify.ai/v1/datasets/{dataset_id}/metadata/{metadata_id}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Authorization: Bearer {api_key}' \
|
||||
--data '{
|
||||
"name":"test"
|
||||
}'
|
||||
--header 'Content-Type: application/json'\
|
||||
--data-raw '{"name": "test"}'
|
||||
```
|
||||
|
||||
|
||||
出力例:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "9f63c91b-d60e-4142-bb0c-c81a54dc2db5",
|
||||
"type": "string",
|
||||
"name": "test"
|
||||
"id": "abc",
|
||||
"type": "string",
|
||||
"name": "test",
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -555,26 +555,24 @@ curl --location 'https://api.dify.ai/v1/datasets/{dataset_id}/metadata' \
|
||||
}
|
||||
```
|
||||
|
||||
#### 修改知识库元数据字段
|
||||
#### 更新知识库元数据字段
|
||||
|
||||
输入示例:
|
||||
|
||||
```bash
|
||||
curl --location --request PATCH 'https://api.dify.ai/v1/datasets/{dataset_id}/metadata/{metadata_id}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--header 'Authorization: Bearer {api_key}' \
|
||||
--data '{
|
||||
"name":"test"
|
||||
}'
|
||||
--header 'Content-Type: application/json'\
|
||||
--data-raw '{"name": "test"}'
|
||||
```
|
||||
|
||||
输出示例:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "9f63c91b-d60e-4142-bb0c-c81a54dc2db5",
|
||||
"type": "string",
|
||||
"name": "test"
|
||||
"id": "abc",
|
||||
"type": "string",
|
||||
"name": "test",
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user